check is_main from conditions