public function isTeamOwner($teamId = null) { $ret = false; if ($teamId) { try { $team = Scalr_Account_Team::init(); $team->loadById($teamId); $ret = $team->isTeamOwner($this->id); } catch (\Exception $e) { } } else { $ret = $this->canManageAcl(); } return $ret; }