Fix accidental deletion of if