       model = @_mapEntity(model, args) ? model
       if args.forEachEntity
         model = args.forEachEntity.call(EntityImporter, {entity: model, c3ml: c3ml}) ? model
+        if model == false
+          return modelDf.resolve(null)
 
       callback = (err, insertId) ->
         if err

        df.promise.fin -> delete importRequestMap[importId]
        Logger.info 'Import request started', importId
      Promises.runSync ->
        promise = EntityImporter.fromAsset(args)
        if df?
          df.resolve(promise)
          # Cancelling the import should return the import method.

            Logger.error('Failed to log entity insert failure', e)
          modelDf.reject(err)
        else
          model._id = insertId
          modelDf.resolve(model)
      
      Entities.insert model, callback
      args.counterLog.increment()
