Where a person who has occupied a dwelling as a residence (in this section referred to as "the owner-occupier") has, by virtue of a restricted contract, granted the right to occupy the dwelling to another person and—
neither section 103 nor 104 of this Act shall apply where a notice to quit the dwelling is served if, at the time the notice is to take effect, the dwelling is required as a residence for the owner-occupier or any member of his family who resided with him when he last occupied the dwelling as a residence.