I think `if (!$('.browserid-login, .browserid-logout').size()) {` would be neater since that's using a documented API for jquery.