preventing print out of empty csv datasets