     return url
 
   _getBoredInstance: (url, customBoredLogic, cb) ->
-    if url == null
-      url = @_serviceUrl() + "/instances/bored"
-
+    url ?= @_serviceUrl() + "/instances/bored"
     opts =
       url     : url
       timeout : 5000

      cb null, url

  _prepareParams: (params) ->
    if !params?
      params = {}

    if !params.auth?
      params.auth = {}

    if !params.auth.key?
      params.auth.key = @_authKey

    params.auth.expires = @_getExpiresDate()
    return JSON.stringify params


    form.append "params", jsonParams

    fields ?= []

    for key of fields
      val = fields[key]
