I realized that I was going about deciding what to show the user in the wrong spot.  It belongs in the controller, not the view.