simplify this logic; Move the test for `node.__data__.data` to top of function and return this default content if undefined.