In all cases when the court finds that either party is entitled to a divorce, the court may restore the wife to the name that she bore previous to the marriage dissolved.