Added a few more methods for testing if a dir is empty