private function toCollection(array $array)
    {
        $collection = new IniCollection([]);
        foreach ($array as $k => $v) {
            if (is_array($array[$k]))
                $collection->set($k, $this->toCollection($array[$k])->toArray());
            else
                $collection->set($k, $v);
        }
        return $collection;
    }