A little more elegance never hurt anyone, in functions/views