public function getDisplayName() { if ($this->name) { return $this->name; } if (!count($this->contacts)) { return ''; } $contact = $this->contacts[0]; return $contact->getDisplayName(); }