Fix syntax error

Syntax is wrong when checking defined identifier.