Had to deal with an API written in JavaScript where a field could have zero or more string items. Two or more items, the field is an array. If it’s one item, the field is set to a single string. Zero items, the field is not set at all.

🤦‍♂️

I don’t blame the language, I blame the API designer.