[Refactoring] Add Module::isRoot()