Using both seems to be a good choice: http://us2.php.net/manual/en/function.property-exists.php#97538