No county, borough, township, or poor district shall receive any allowance from the Commonwealth for the maintenance of any indigent insane in any hospital or institution, supplied, created, equipped, or maintained by such county, borough, township, or school district for the maintenance of its indigent insane, unless the department has duly certified to the Auditor General that such hospital or institution is built, equipped, and managed so as to provide for the proper care and treatment of the insane maintained therein.
71 P.S. § 1477