Fixed if statement syntax