A person may refuse to provide accommodation to another person in a hostel or similar institution established wholly or mainly for the welfare of persons of a particular sex, age, race or religious belief if the other person is not of that sex, age, race or religious belief.