(b) When there is a minor child of the marriage, or when the responding party denies by answer to the petition for dissolution that the marriage is irretrievably broken, the court may:
1. Order either or both parties to consult with a marriage counselor, psychologist, psychiatrist, minister, priest, rabbi, or any other person deemed qualified by the court and acceptable to the party or parties ordered to seek consultation; or
2. Continue the proceedings for a reasonable length of time not to exceed 3 months, to enable the parties themselves to effect a reconciliation; or
3. Take such other action as may be in the best interest of the parties and the minor child of the marriage.
If, at any time, the court finds that the marriage is irretrievably broken, the court shall enter a judgment of dissolution of the marriage. If the court finds that the marriage is not irretrievably broken, it shall deny the petition for dissolution of marriage.