only create a .nested and .hasherror if there is something to output