is "isDirectory(path)" a comment? 

If it is, write it as "// path is a directory"