protected function extractKeys($array): array
    {
        $result = [];
        foreach ($array as $key=>$val) {
            if (is_int($key)) {
                $result[$val] = [];
            } else {
                $result[$key] = $val;
            }
        }

        return $result;
    }