c. It shall be unlawful for an owner or his or her agent, by express terms or otherwise, to restrict a tenant's rights as provided in this section. Any such restriction shall be unenforceable and deemed void as against public policy.
d. The waiver provision of this section shall not apply where the harboring of a household pet causes damage to the subject premise, creates a nuisance or interferes substantially with the health, safety or welfare of other tenants or occupants of the same or adjacent building or structure.
e. The New York city housing authority shall be exempt from the provisions of this section.