N.Y. Real Property Actions & Proceedings Law § 1302
1. Any complaint served in a proceeding initiated on a residential mortgage covering a one to four family dwelling pursuant to this article must contain an affirmative allegation that at the time the proceeding is commenced, the plaintiff: