const addIfUnique = (that, type, o) => {
    if (!that[type][o.id]) {
        that[type][o.id] = o;
        return OK;
    } else {