 
   # Public: Returns true if a file or folder at the specified path exists.
   existsSync: (pathToCheck) ->
-    pathToCheck?.length > 0 and statSyncNoException(pathToCheck) isnt false
+    isPathValid(pathToCheck) and (statSyncNoException(pathToCheck) isnt false)
 
   # Public: Returns true if the given path exists and is a directory.
   isDirectorySync: (directoryPath) ->
-    return false unless directoryPath?.length > 0
+    return false unless isPathValid(directoryPath)
     if stat = statSyncNoException(directoryPath)
       stat.isDirectory()
     else


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


  # Public: Returns true if the specified path is executable.
  isExecutableSync: (pathToCheck) ->
    return false unless isPathValid(pathToCheck)
    if stat = statSyncNoException(pathToCheck)
      (stat.mode & 0o777 & 1) isnt 0
    else
