             if results?.data
               for result in results.data
                 if clones?[result.id]
-                  if _.isEmpty result.body.errors
-                    @batchResults[result.id] = result.body
+                  if result?.body
+                    if _.isEmpty result.body?.errors
+                      @batchResults[result.id] = result.body
+                    else
+                      for error in result.body.errors
+                        console.error error.message
+                        console.error {code: error.code}
+                      @batchResults[result.id] = []
                   else
-                    for error in result.body.errors
-                      console.error error.message
-                      console.error {code: error.code}
                     @batchResults[result.id] = []
 
                   clones[result.id] = undefined
                   delete clones[result.id]
+
     , 100
 
   __getBatchResult: (id, cb) ->

class Neo4jListener
  constructor: (listener, @_db) ->
    check listener, Function

    @base = opts.base or opts.root or opts.path or 'db/data'
    @base = @base.replace(/^\/|\/$/g, '')
    @root = "#{@url}/#{@base}"
    @https = !!~@url.indexOf 'https://'
    check @base, String

    @__service = {}
