this can probably be reduced to something like:

    return $('#banner-notification:visible, #global-cookie-message:visible, #global-browser-prompt:visisble').length > 0;

You should avoid testing for `display: block` as it can still be visible but with a different display value.