Refactored into a real `if` statement.