public function setFax($fax) { if ($fax) { $this->contactobject->appendChild($this->createElement('contact:fax', $fax)); } }