Simplify if.