public function isOwner(Bubble $bubble) { if (!$this->getAuthService()->hasIdentity()) { return false; } return $bubble->getOwner() == $this->getAuthService()->getIdentity(); }