"A tenancy or licence is excluded if - (a)under its terms the occupier shares any accommodation with the landlord or licensor; and (b)immediately before the tenancy or licence was granted and also at the time it comes to an end, the landlord or licensor occupied as his only or principal home premises of which the whole or part of the shared accommodation formed part."