Switch from if/else to simple if.