Correct Syntax of if statement