Corrected if statement