Custom Fields Need to be checked 

Forgot to include a check to see if there were any custom fields in the $xml_obj.