Reformat if statement