Here, the Supreme Court erred in making a final custody determination without a hearing and without inquiring into the best interests of the child (see Indictor v Indictor, 192 A.D.3d 1089, 1091; Matter of Fraser v Fleary, 147 A.D.3d 937, 938; Matter of Archibald M. v Georgette S., 110 A.D.3d 811).