protected function findProductItem(Collection $items, $key)
    {
        if ($key instanceof ItemModel) {
            $key = $key->getKey();
        }

        return $items->first(function($id, $item) use($key) {
            return $item->product_id == $key;
        });
    }