private static function encodeList($list, &$serialized)
    {
        if (empty($list)) {
            $serialized .= "le";
            return;
        }

        $serialized .= "l";
        for ($i = 0; isset($list[$i]); $i++) {
            self::decideEncode($list[$i], $serialized);
        }
        $serialized .= "e";
    }