Fix method call isDir -> isFolder
Minor syntax fix