src/ShopifyApp/Services/WebhookManager.php
public function webhookExists(array $webhook)
    {
        $shopWebhooks = $this->shopWebhooks();
        foreach ($shopWebhooks as $shopWebhook) {
            if ($shopWebhook->address === $webhook['address']) {
                // Found the webhook in our list
                return true;
            }
        }

        return false;
    }
public function webhookExists(array $webhook)
    {
        $shopWebhooks = $this->shopWebhooks();
        foreach ($shopWebhooks as $shopWebhook) {
            if ($shopWebhook->address === $webhook['address']) {
                // Found the webhook in our list
                return true;
            }
        }

        return false;
    }
Check if webhook is in the shop (by address).

@param array $webhook The webhook

@return bool