static public function renumberKeysToAvoidLeapsIfKeysAreAllNumeric(array $array = array(), $level = 0)
    {
        $level++;
        $allKeysAreNumeric = TRUE;
        foreach (array_keys($array) as $key) {
            if (is_numeric($key) === FALSE) {
                $allKeysAreNumeric = FALSE;
                break;
            }
        }
        $renumberedArray = $array;
        if ($allKeysAreNumeric === TRUE) {
            $renumberedArray = array_values($array);
        }
        foreach ($renumberedArray as $key => $value) {
            if (is_array($value)) {
                $renumberedArray[$key] = self::renumberKeysToAvoidLeapsIfKeysAreAllNumeric($value, $level);
            }
        }

        return $renumberedArray;
    }