Check if a directory is empty.