Fixed syntax error of checking defined identifier

The syntax is wrong when checking defined identifier.
Merge pull request #170 from olliwang/static

Fixed syntax error of checking defined identifier