Add replaceItemsWithItemsFromArray method