I want to catch this error:
$a[1] = 'jfksjfks'; try { $b = $a[0]; } catch (\Exception $e) { echo "jsdlkjflsjfkjl"; }
Edit: in fact, I got this error on the following line: $parse = $xml->children[0]->children[0]->toArray();
$parse = $xml->children[0]->children[0]->toArray();