protected function assertFile(string $file, array $options): bool
    {
        if (is_file($file) && is_readable($file)) {
            return true;
        }

        if (!(bool)($options['optional'] ?? false)) {
            throw new LoadException("Config file '$file' doesn't exist or is not readable");
        }

        return false;
    }