Optimization in "if" statement.