It would take too long to explain why I need this, but I was wondering if there was a PHP function to check if a type of object was recognized. In other words, a function that would check if
$dog = new Dog();
would cause an error, because Dog didn't exist. Thanks for you help.