PHP Periksa apakah non-objek

is_object($yourObject)
  
@returns bool
Lazurite