PHP 5.4+ issue

SimpleXML objects seem to be handled differently in 5.4+
Could also check type... should be SimpleXMLElement?