- cli.checkout.checkout: simplify conditions