Fixed syntax error of checking defined identifier

The syntax is wrong when checking defined identifier.