PHP 5.4+ issue

SimpleXML objects seem to be handled differently in 5.4+