reduce indentation with early exit.