const windowExists = (w) => {
    if (!w || (w && w.isDestroyed())) {
        return false;
    }

    return true;
};