N.Y. Domestic Relations Law § 77-I
1. Unless the court issues a temporary emergency order pursuant to section seventy-six-c of this article, upon a finding that a petitioner is entitled to immediate physical custody of the child, the court shall order that the petitioner may take immediate physical custody of the child unless the respondent establishes that:
(a) the child custody determination has not been registered and confirmed under section seventy-seven-d of this title and that: