make sure the folder is not empty
