However, no occupation order may be made in respect of any dwellinghouse unless either party to the proceedings owned it, or either party to the proceedings had a legal interest (for example, a tenancy) in it, at a time when the family relationship in respect of which the protection order is sought or was made existed.