can we name:
val queueIsReplaced = !keyMap.replace(key, oldQueue, oldQueue)

also, how is that different from:
!(keyMap.get(key) == oldQueue)