Awkward, it won't allow ```map_type == type(None)```
So maybe should use instead ```isinstance(None, map_type)```