This conditional should be moved to a view helper with a descriptive name.