           if errors
             modelType = @getModelType(errors.railsClass)
             model = @_storeLocally(modelType, errors.model)
-            model.dirty = true if not model.id
+            model.dirty = true unless model.id
             errors = errors.errors
             model.trigger 'commit:failed',
               model: model,

      lastPage() - request last page models from server
  ###
  findRemote: (options) ->
    if not options.modelType
      throw('Must define a modelType upon search!')
    options.modelType = @getModelType(options.modelType)
    col_cid = @_searchedModels._cid++
    @_searchedModels[options.modelType] = {} if not @_searchedModels[options.modelType]
    @_searchedModels[options.modelType][col_cid] =
      subset: null
      ids: []


  getModelType: (model) ->
    if _.isString(model)
      unless @_types[model]
        throw "Invalid model #{model}"
      return model
    else if model instanceof Backbone.RailsModel
