/** * Checks overload properties (and dynamic singleton class instances). * * @param string $property Name of a valid overload property. * Or a dynamic class to check on, using the special class `©` prefix. * * @return boolean TRUE if the overload property (or dynamic singleton class instance) is set. * Otherwise, this will return FALSE by default (i.e. the property is NOT set). */ public function __isset($property) { $property = (string) $property; if (property_exists($this->wpdb, $property)) { return isset($this->wpdb->{$property}); } return parent::__isset($property); // Default return value. }