       cb null, url
 
   _prepareParams: (params) ->
-    if !params?
-      params = {}
-
-    if !params.auth?
-      params.auth = {}
-
-    if !params.auth.key?
-      params.auth.key = @_authKey
+    params          ?= {}
+    params.auth     ?= {}
+    params.auth.key ?= @_authKey
 
     params.auth.expires = @_getExpiresDate()
     return JSON.stringify params

    return url

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

    opts =
      url     : url
      timeout : 5000


    form.append "params", jsonParams

    fields ?= []

    for key of fields
      val = fields[key]
