@NogDogFeb 01.2022 — #Assuming you want to make sure it's a particular type of object, maybe... [code=php] if(isset($myObject) and $myObject instanceof SomeClassNameHere) { } [/code] If all you care is that it's _any_ type of object, you could replace the instanceof expression with an [u][is_object()](https://www.php.net/manual/en/function.is-object.php)[/u] call instead, I suppose.
@NogDogFeb 01.2022 — #PS: If you just want to make sure an object creation worked: [code=php] $foo = new Something(); if(empty($foo)) { throw new Exception("Oops"); } [/code] (Though there's a good chance it will have already thrown an Exception, I suspect?)