Empty toast container function

function isEmpty(selector) {
    return document.querySelector(selector).innerHTML.trim().length == 0;
}