Adding a check to see if the map is empty?