private function addNewNotEmptyXmlElement(DOMDocument $dom, DOMElement $node, $name, $value)
    {
        if (!empty($value)) {
            $this->addNewXmlElement($dom, $node, $name, $value);
        }
    }
private function addNewNotEmptyXmlElement(DOMDocument $dom, DOMElement $node, $name, $value)
    {
        if (!empty($value)) {
            $this->addNewXmlElement($dom, $node, $name, $value);
        }
    }
private function addNewNotEmptyXmlElement ( DOMDocument $ dom , DOMElement $ node , $ name , $ value ) { if ( ! empty ( $ value ) ) { $ this -> addNewXmlElement ( $ dom , $ node , $ name , $ value ) ; } }
Utility method to add new elements to an xml node if their value is not empty.

@param \DOMDocument $dom xml document
@param \DOMElement $node where to add the new element
@param string $name of the new element
@param string $value of the new element
Utility method to add new elements to an xml node if their value is not empty .