Added method_exists()