- property_exists: documentation ( source)
- var_dump: documentation ( source)
<?php
$foo = (object) array(
'bar' => 'baz'
);
var_dump('exists? (1)', property_exists($foo, 'bar'));
unset($foo->bar);
var_dump('exists? (2)', property_exists($foo, 'bar'));