remove the use getFolders when folder is empty