public function inGroups(array $groups) { return (bool) count(array_intersect($this->groups, $groups)); }