public function isEnabled(Module $module) {
		if (WULACMF_INSTALLED) {
			$name = $module->getNamespace();
			if (isset($this->modules[ $name ])) {
				$m                        = $this->modules[ $name ];
				$module->installed        = true;
				$module->installedVersion = $m['version'];
				$module->upgradable       = version_compare($module->getCurrentVersion(), $m['version'], '>');
				$module->enabled          = $m['status'] == 1;
				$module->isKernel         = $module->isKernel || $m['kernel'] == 1;

				return $module->enabled;
			} else if (!$module instanceof CmfModule) {
				$module->installed        = true;
				$module->enabled          = true;
				$module->installedVersion = $module->getCurrentVersion();
				$module->isKernel         = true;

				return true;
			}

			return false;
		} else {
			$name = $module->getNamespace();
			if ($name == 'system') {
				return true;
			}
		}

		return false;
	}
public function isEnabled(Module $module) {
		if (WULACMF_INSTALLED) {
			$name = $module->getNamespace();
			if (isset($this->modules[ $name ])) {
				$m                        = $this->modules[ $name ];
				$module->installed        = true;
				$module->installedVersion = $m['version'];
				$module->upgradable       = version_compare($module->getCurrentVersion(), $m['version'], '>');
				$module->enabled          = $m['status'] == 1;
				$module->isKernel         = $module->isKernel || $m['kernel'] == 1;

				return $module->enabled;
			} else if (!$module instanceof CmfModule) {
				$module->installed        = true;
				$module->enabled          = true;
				$module->installedVersion = $module->getCurrentVersion();
				$module->isKernel         = true;

				return true;
			}

			return false;
		} else {
			$name = $module->getNamespace();
			if ($name == 'system') {
				return true;
			}
		}

		return false;
	}
@param \wulaphp\app\Module $module

@return bool