public function canRemoveUser($user) { return !$this->isTeamUser() && $user->getAccountId() == $this->getAccountId() && !$user->isAccountOwner() && $this->getId() != $user->getId() && ($this->isAccountOwner() || $this->isAccountSuperAdmin() || !$user->isAccountSuperAdmin()); }