Changing the parameter name from "item" to "line" would make this significantly more readable IMO.