Could you make it support the case where the map is empty?