     releaseSearchCollection - remove search collection from memory
   ###
   releaseSearchCollection: (collection) ->
-    if not collection instanceof Backbone.RailsSearchResultCollection
+    unless collection instanceof Backbone.RailsSearchResultCollection
       throw "Cannot release colllection! API BUG!"
 
     modelType = @getModelType(collection.modelType)

      authenticate:failed - upon failure
  ###
  authenticate: (options) ->
    if not options.modelType
      throw('Must define a modelType upon authentication!')
    if not options.model
      throw('Must define a model upon authentication')
    options.modelType = @getModelType(options.modelType)
    token = (new Date()).toString()

    else if model instanceof Backbone.RailsCollection
      return model.model.prototype.railsClass
    else
      unless model.prototype.railsClass
        if model.prototype.model or not model.prototype.model.prototype.railsClass
          return  model.prototype.model.prototype.railsClass
        throw "Invalid model #{model}"
