Check of is empty in XML Class