Replaces an emptiness check of the result of Map.get with a call to Map.contains.

Before:

map.get(key).nonEmpty
map.get(key).isEmpty

After:
map.contains(key)
!map.contains(key)