isExisting() {
        let exists = false;

        return getInstalledObjects()
            .then((installed) => {
                console.log(installed);
                installed.forEach(item => {
                    if (item.total && item.total > 0) {
                        // If it's  a purecloud search reslts
                        exists = true;
                    } else {
                        // if it's just an array
                        exists = item.length > 0 ? true : exists;
                    }
                });

                return exists;
            })
            .catch((e) => console.error(e));
    }
/**
     * Checks if any installed objects are still existing
     * @returns {Promise<boolean>}
     */
Checks if any installed objects are still existing
@returns {Promise}
Checks if any installed objects are still existing @returns { Promise }
isExisting() {
        let exists = false;
        return getInstalledObjects()
            .then((installed) => {
                console.log(installed);
                installed.forEach(item => {
                    if (item.total && item.total > 0) {
                        exists = true;
                    } else {
                        exists = item.length > 0 ? true : exists;
                    }
                });
                return exists;
            })
            .catch((e) => console.error(e));
    }
isExisting ( ) { let exists = false ; return getInstalledObjects ( ) . then ( ( installed ) => { console . log ( installed ) ; installed . forEach ( item => { if ( item . total && item . total > 0 ) { exists = true ; } else { exists = item . length > 0 ? true : exists ; } } ) ; return exists ; } ) . catch ( ( e ) => console . error ( e ) ) ; }
Checks if any installed objects are still existing
 @returns {Promise<boolean>}
Checks if any installed objects are still existing @returns { Promise<boolean > }
// If it's  a purecloud search reslts // if it's just an array