No need to check for `line == ""` here, the len(fields) check already does that.