Yanfly's Skill Core: need eval code for user's class

Hi there! I'm currently using Yanfly's Skill Core, and I want to use the tags to hide skills for certain classes. I notice that the plugin comes with script that can be used to hide skills

Code:
<Custom Show Eval>
  if (user.level > 50) {
    visible = true;
  } else {
    visible = false;
  }
  </Custom Show Eval>

In this case, I basically just need the eval code "user.level > 50" to instead check if the user's class is a certain number. I've been searching for hours and can't find a good list of eval codes that includes what I need here. Any help is greatly appreciated!
Code:
<Custom Show Eval>
  var restrictedClasses = [];
  //List the ID's of the classes you don't want to be able to use the skill here
  restrictedClasses.push(2,3);
  if (!restrictedClasses.contains(user.currentClass())) {
    visible = true;
  } else {
    visible = false;
  }
  </Custom Show Eval>
This should work, let me know if there's any issues.
This works perfectly! Thanks for the help!

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-skill-core-need-eval-code-for-users-class.120699/