So this:
if "unit" in data.at(entry.label.value) {
sym.bracket.l; unit(data.at(entry.label.value).unit); sym.bracket.r;
} else {
[[--]]
},
seems to work. I will post an update about the global setting for unify too