change default template to only output `return` param when it's not empty.