alternative fix to define empty rows

@current_row.nil? didn't seem to work for me