Also there are font-end languages (XPath, CSS selectors, etc) specifically for these types of structures, so you don't have to traverse them.
In general, I think it's enough to know what your abstraction does, rather than how it does it.
https://en.wikipedia.org/wiki/Leaky_abstraction#The_Law_of_L...
Fun fact: I'm lying.