public function getArrayItem(string $key, string $subKey, $defaultValue = null)
    {
        $expectedArray = $this->get($key, []);

        if (!is_array($expectedArray)) {
            $type = gettype($expectedArray);
            throw new ConfigException("Trying to fetch array from config={$this->name()} under key={$key}, but got '{$type}' instead");
        }

        return array_key_exists($subKey, $expectedArray) ? $expectedArray[$subKey] : $defaultValue;
    }