I get this warning in my error logs and wanted to know how to correct this issues in my code.
Warning: PHP Notice: Undefined property: stdClass::$records in script
Depending on whether you're looking for a member or method, you can use either of these two functions to see if a member/method exists in a particular object:
http://php.net/manual/en/function.method-exists.php
http://php.net/manual/en/function.property-exists.php
More generally if you want all of them:
http://php.net/manual/en/function.get-object-vars.php