Whitelisting issue

Hey, to basically I am having a problem with a whitelist system that I have for an entity im working on, the whitelist only works fine with one job, more than one causes the job to be effected by the entity as their team is not equal to the initial variable in the for loop, I have no idea how to whitelist jobs in any other way than using a table and a for loop. Any help with helping me resolve this will be greatly appreciated.

Whitelist table:


local safelist = {
		
	"Citizen",
	"Hobo"
}



		for k, v in pairs (safelist) do
			
		if plyTeam ~= v then  --ERROR OCCURS HERE, IF THE FIRST SAFE JOB MATCHES, 	
				  --THE NEXT JOB FETCHED FROM SAFELIST IS NOT EQUAL TO THE PLAYERS CURRENT JOB