check map before map_set?