A->b->c might exist but c might not exist. How do I check it?
A->b->c
c
SimpleXML always return Object. If there is no child, empty object is returned.
if( !empty($a->b)){ var_dump($a->b); }