Returns true when map has key at the top level (no traversal).
map
key
static bool exists(Map map, Object key) => map.containsKey(key);