private function pop(array &$list, $oid, StockUnitInterface $unit)
    {
        if (false !== $index = $this->find($list, $oid, $unit)) {
            unset($list[$oid][$index]);

            if (empty($list[$oid])) {
                unset($list[$oid]);
            }
        }
    }