is_empty_xml function

Check whether an object is empty for xml builds