public function checkCurrentApiLimit(): int
    {
        $limit = $this->responseHeaders['X-Shopify-Shop-Api-Call-Limit'] ??
                 $this->responseHeaders['HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT'] ?? ['1/40'];

        return (int)explode('/', $limit[0])[0];
    }