changed deprecated Gee.Map.contains to Gee.Map.has_key