···171171 // Starting the loop at 1 because we do not want to look at the first element.
172172 for (let index = 1; index + 1 < parts.length; index += 2) {
173173 const key_part = parts[index]
174174- if (typeof key_part !== 'string' || result[key_part])
174174+ if (typeof key_part !== 'string' || result[key_part] !== undefined)
175175 throw new Error('invalid_xml' as plist_parser_error_types, { cause: { xml: xml_fragment, key_part, value_part: parts[index + 1] } })
176176177177 const value_part = parts[index + 1]