config = new coolify_c(); } /** * @throws Exception */ public function requireModuleEnabled(): void { if (!$this->config->enabled->isTrue()) { throw new Exception('The Coolify module is not enabled'); } } public function isEnabled(): bool { try { return $this->config->enabled->isTrue(); } catch (Exception) { return false; } } }