check if the dir is empty or not