Почему то не выполняется условие issset, в чем проблема?
$whereOrdersAndCells = [];
foreach ($shipmentOrderIds as $shipmentOrderId) {
if (isset($shipmentCellsByStreamAndOrderId[$streamId][$shipmentOrderId])) {
$shipmentOrderUniqKey = uniqid(':shipment_order_id');
$whereOrdersAndCells[] = [
'AND',
't.shipment_order_id = ' . $shipmentOrderUniqKey,
['IN', 't.shipment_cell_id', $shipmentCellsByStreamAndOrderId[$streamId][$shipmentOrderId]],
];
$params[$shipmentOrderUniqKey] = $shipmentOrderId;
unset($shipmentOrderIds[$shipmentOrderId]);
}
}