def hasModule(self, mod):
if self._modules is None:<EOL><INDENT>self._initModuleList()<EOL><DEDENT>return mod in self._modules<EOL>
Returns True if mod is among the loaded modules.

        @param mod: Module name.
        @return:    Boolean