Correct extraneous if line