Seconding. Furthermore, please don't feel like you gotta stay together "for the kid". At least ask the kid whether they care. My parents asked me. I told them I didn't care.
Kids are more perceptive than anyone gives them credit for.
Edit: "around here" being Australia and New Zealand