Another, more compact way to express the same thing would be:

    $vars = { nobirthdays => 1 } unless @bdays;
    return DW::Template->render_template( 'birthdays.tt', $vars );