ny appeals court custody reversal