$csv can be null here. What happens then?