Writing map_list only if there sections other than header_item.