Combine the two `if` statements