changed soape, sem, course, hw setDirectory method to account for maps
of size 0, returns true if object has no child elements