checking if dir is empty