public function hasParentRole(Role $role) { return isset($this->parentRoles[$role->getIdentifier()]); }