Moved method DoesDirectoryHaveContent to FileIO

* pulled directly out of Research 
* added basic tests
* we want to use this method in other places in the code, so it makes more sense to have it in FileIO