public function isModuleEnabled($moduleName, $includingExternal = false)
{
if (!$this->_config) {
throw new \Exception('Configuration is not loaded');
}
if ($includingExternal && isset($this->_config->_externalModulesPathList[$moduleName])) {
return true;
}
return isset($this->_config->_modulesPathList[$moduleName]);
}