public static function keyRename(&$array, $from, $to)
    {
        if (\is_array($array) && $from !== $to) {
            $keys = \array_keys($array);
            $pos = \array_search($from, $keys, true);
            if ($pos !== false) {
                $nextKey = isset($keys[$pos+1])
                    ? $keys[$pos+1]
                    : null;
                $value = $array[$from];
                unset($array[$from]);
                self::keySplice($array, $nextKey, 0, array($to=>$value));
            }
        }
        return;
    }