Change a room assignment only if it is still current
Conditional map update
Map.replace
MutableMap.replace on the JVM
Conditional dictionary assignment
Map.updatedWith and Option