async function checkSite(page, urls, pattern) {

        for (let url of urls) {
            await page.goto(url, { waitUntil: 'networkidle0' });
            if ( await searchHTMLContent(page, pattern)) {
                return url
            };
        }
        return false
    }
/**
     * Generalized search for sold out ps5
     * 
     * @param {puppet.Page} page The page the browser loaded
     * @param {Array<string>} urls  The urls for this retailer
     * @param {RegExp} pattern The regular expression that indicates sold out
     * @returns 
     */
Generalized search for sold out ps5

@param {puppet.Page} page The page the browser loaded
@param {Array} urls  The urls for this retailer
@param {RegExp} pattern The regular expression that indicates sold out
@returns
Generalized search for sold out ps5 @param { puppet . Page } page The page the browser loaded @param { Array } urls The urls for this retailer @param { RegExp } pattern The regular expression that indicates sold out @returns
async function checkSite(page, urls, pattern) {
        for (let url of urls) {
            await page.goto(url, { waitUntil: 'networkidle0' });
            if ( await searchHTMLContent(page, pattern)) {
                return url
            };
        }
        return false
    }
async function checkSite ( page , urls , pattern ) { for ( let url of urls ) { await page . goto ( url , { waitUntil : 'networkidle0' } ) ; if ( await searchHTMLContent ( page , pattern ) ) { return url } ; } return false }
Generalized search for sold out ps5
Generalized search for sold out ps5