Fixed wrong method_exists check