Checks if the class method exists in the given object_or_class.
An object instance or a class name
The method name
Returns true if the method given by method has been defined for the given object_or_class, false otherwise.
Using this function will use any registered autoloaders if the class is not already known.