IMO we should not return values from view scripts. We don't want to give the impression that the return value is meaningful. I don't know if this is documented anywhere.