It's a helper because the flag check is happening in the controller AND the grid block. I think you mentioned DRY in another comment.