Updated add_item_array function

Not sure if anyone is using this but thought I would do a quick pull request just incase.