N.Y. Real Property Actions & Proceedings Law § 1309
2.
(b) Residential real property will also be deemed vacant and abandoned if:
(d) Residential real property will not be deemed vacant and abandoned if, on the property:
5. With respect to foreclosure actions brought pursuant to this section: