changed isFolder property to boolean