public function addAddress($address) { if (!$this->getAddresses()) { return $this->setAddresses(array($address)); } else { return $this->setAddresses(array_merge($this->getAddresses(), array($address))); } }