Flipped order of the if statement.