Simplify `has` helper.