`return (boolean) (0 < count(array_intersect($userGroups, $groups)));`