Nobody sets out to get divorced, but understanding the rules can help you have a plan in place if your marriage was to end