public static function isEnabled(string $adapter): bool
    {
        $config = static::getConfig();

        if (!$config->has($adapter)) {
            return false;
        }

        $enabled = $config->getArrayItem($adapter, 'enabled');
        if ($enabled === null) {
            return false;
        }

        return (bool)$enabled;
    }