No need to check if `newNames.has(name)` here since that is the first thing `ArraySet.prototype.add` does.