fix list upload files (empty folder)

Fix check if "upload files" folder has files inside of it.