Sometimes two 'if' statements can be consolidated by separating their conditions with a boolean short-circuit operator.