src/ShopifyApp/Jobs/ScripttagInstaller.php
protected function scripttagExists(array $shopScripttags, array $scripttag)
    {
        foreach ($shopScripttags as $shopScripttag) {
            if ($shopScripttag->src === $scripttag['src']) {
                // Found the scripttag in our list
                return true;
            }
        }

        return false;
    }
protected function scripttagExists(array $shopScripttags, array $scripttag)
    {
        foreach ($shopScripttags as $shopScripttag) {
            if ($shopScripttag->src === $scripttag['src']) {
                // Found the scripttag in our list
                return true;
            }
        }

        return false;
    }
Check if scripttag is in the list.

@param array $shopScripttags The scripttags installed on the shop
@param array $scripttag      The scripttag

@return bool