How would I check a player's current job in IF statement?

This DarkRP server shows categories even when they’re empty (because they don’t have the right job) and I don’t know how to word the canSee parmenter, as seen below, to prevent the category being shown when they have the wrong job.

I’m new to Lua and I thought it was something like ply:IsTeam(team) or something of the sorts.

[editline]31st March 2016[/editline]

Never mind, I’m so stupid. That’s exactly how you do that. I got one of the job names incorrect.