Correct if-statement syntax