$orderGid]); $order = $data['order'] ?? null; if (!is_array($order)) { throw new RuntimeException("Shopify-Bestellung nicht gefunden: {$orderGid}"); } return $order; }