Remove extraneous if.