         response.__proto__.__index = 0
         response
 
+nextCbCheck = (cb) ->
+    unless typeof cb is 'function'
+        throw new RqlDriverError "Argument to next must be a function."

    )

    toArray: ar (cb) ->
        arr = []
        if not @hasNext()
            cb null, arr

    next: -> throw "Abstract Method"

    each: varar(1, 2, (cb, onFinished) ->
        unless typeof cb is 'function'
            throw new RqlDriverError "First argument to each must be a function."
        if onFinished? and typeof onFinished isnt 'function'
            throw new RqlDriverError "Optional second argument to each must be a function."

        brk = false
        n = =>
            if not brk and @hasNext()
