what qualifies for emergency custody NY