public function isEmptyValue(SPIValue $value) { if ($value->xml === null) { return true; } return !$value->xml->documentElement->hasChildNodes(); }