Simplifying hasPermissions

Simplifying the permissions check. 
I've tested this with a couple permission sets and user sets.