I this have code to make sure that [key, value] pair exist in map
[key, value]
map
if (map.has(key)) { map.get(key).propertyInValue = getSomething()