Small refactoring of is_hidden to take root as default kwarg.