fixed method_exists call.