     if _.isString fileRef
       version = fileRef 
       fileRef = undefined
-    return undefined if not fileRef or @currentFile
+    return undefined if not fileRef or not @currentFile
 
     if fileRef and _.isObject fileRef 
       if @public

  @description Add file from FS to Meteor.Files
  @returns {Files} - Return this
  ###
  # addFile: if Meteor.isServer then (path, opts, callback) ->
  #   console.info "[addFile(#{path})]" if @debug
  #   check path, String
  #   check opts, Match.Optional Object
  #   check callback, Match.Optional Function

  #   try
  #     fs.statSync path
  #     buffer    = fs.readFileSync path
  #     pathParts = path.split '/'
  #     fileName  = pathParts[pathParts.length - 1]
  #     ext       = fileName.split('.').pop()
  #     result    = 
  #       name:       fileName
  #       extension:  ext
  #       path:       path
  #       meta:       opts.meta
  #       type:       if opts.type then opts.type else 'application/*'
  #       size:       if opts.size then opts.size else buffer.length
  #       isVideo:    if opts.type then opts.type.toLowerCase().indexOf("video") > -1 else false
  #       isAudio:    if opts.type then opts.type.toLowerCase().indexOf("audio") > -1 else false
  #       isImage:    if opts.type then opts.type.toLowerCase().indexOf("image") > -1 else false
  #       _prefix:    @_prefix
  #       _collectionName: @collectionName
  #       _storagePath:    path.replace "/#{fileName}", ''
  #       _downloadRoute:  @downloadRoute

  #     result._id = @collection.insert _.clone result
  #     console.info "The file #{fileName} (binary) was added to #{@collectionName}" if @debug

  #     callback and callback null, result
  #     return result

  #   catch error
  #     callback and callback error, undefined
  #     return error
  # else
  #   undefined

  ###
  @isomorphic

  @description Download file, write stream to FS and add to Meteor.Files Collection
  @returns {Files} - Return this
  ###
  load: if Meteor.isServer then (url, opts = {}, callback) ->
    console.info "Meteor.Files Debugger: [load(#{url}, #{opts}, callback)]" if @debug
    check url, String
    check opts, Match.Optional Object
