Wouldn't it be esier to pass `$item` as a whole?