While mediation is not always mandatory, California courts often encourage parents to attempt mediation to resolve custody disputes amicably before resorting to litigation.