Corrected if statement formatting