   catch error
     false
 
+isPathValid = (pathToCheck) ->
+  pathToCheck? and typeof pathToCheck is 'string' and pathToCheck.length > 0
+
 module.exports = _.extend({}, fs, fsPlus)


  # Public: Returns true if the specified path exists and is a file.
  isFileSync: (filePath) ->
    return false unless filePath?.length > 0
    if stat = statSyncNoException(filePath)
      stat.isFile()
    else


  # Public: Calls back with true if the specified path is a symbolic link.
  isSymbolicLink: (symlinkPath, callback) ->
    if isPathValid(symlinkPath)
      fs.lstat symlinkPath, (error, stat) ->
        callback?(stat? and stat.isSymbolicLink())
    else
