retrieve($pos['product_id']); if($pr->pkwiu!=''){ $oo=true; } } return $oo; } function checkIsOO($positions, $focus) { $result = array(); $oo=false; foreach ($positions as $pos) { if($pos['ecmvat_id']=='a8c52d5e-15df-2a13-c934-5578307bebd2'){ $oo=true; } } return $oo; }