fixed module check method
Merge pull request #10 from vpsllc/bugfix/undefinedModuleCheck

fixed module check method