public function getLocationText() { if ($this->location) { return $this->location; } if ($this->contact->address) { return $this->contact->address->address1; } }