- var_dump: documentation ( source)
- class_exists: documentation ( source)
<?php
if(!class_exists('SimpleXMLElement')) die("Bonkers");
$xml = new SimpleXMLElement('<xml><node></node></xml>');
var_dump(typeof($xml->node));
var_dump(typeof($xml->node->foo));
var_dump(isset($xml->node->foo));
var_dump(is_null($xml->node->foo));