There is a way to do this while encapsulating the business logic in a collection and out of the view logic.