public function hasRelations() { if (!$this->getContactAddresses()->isEmpty() || !$this->getAccountAddresses()->isEmpty()) { return true; } return false; }