public static function pivotToTwoDimension(&$array, array $keys = [])
    {
        foreach ($keys as $key) {
            if (is_object($array)) {
                $array2 = clone $array;
            } else {
                $array2 = $array;
            }

            $array = Arr::set($array, $key, $array2);
        }

        return $array;
    }