trivial: compress two conditionals