The provisions of this Part of this Act shall have effect notwithstanding any agreement to the contrary:
Provided that nothing in this Part of this Act shall be construed as preventing the surrender of a tenancy.