Removed useless directories.empty() test