I didn’t wanna go through the courts.

Is their any advice I can be given about going to court in NY for primary custody of my 4 month old baby boy?