           _console.debug "[feedlyconsole] set api url: %s.", url
           _self.api = url
         else if request.action is "toggle_console"
-          if _self.ui.toggleActivateAndShow is `undefined`
+          unless _self.ui.toggleActivateAndShow?
             window.console.warn "[feedlyconsole] ui not yet ready"
           else
             _self.ui.toggleActivateAndShow()

          _self.OAuth = request.feedlytoken
          _console.debug "[feedlyconsole] token %s...", _self.OAuth.slice(0, 8)
        else
          _console.debug "[feedlyconsole] unknown action %s request %O.", request.action, request
        sendResponse action: "ack"

    else

            limit: parseInt(xhr.getResponseHeader("X-RateLimit-Limit"))
            authenticated: xhr.getResponseHeader("Authenticated") is "true"

          $("#ratelimit").html _self
          .shell.templates.rateLimitTemplate(ratelimit)
          if ratelimit.remaining is 0
            alert "Whoops, you've hit the github rate limit. You'll need
 to authenticate to continue"
            _self.shell.deactivate()
            return null

