This check is to not allow escaping modals, and just the notifications?  As the same thing controls both?

Perhaps a little more explicit to check for `$('.js-modal').length < 1`.