Fix syntax error: missing "if"