public function isBlogger(User $user) { foreach ($user->getGroups() as $group) { if ($this->config['role'] == $group->getId()) { if (count($user->getGroups()) == 1) { return true; } } } return false; }