Instead of this ternary, what do you think about "w.formatValue(f.value)", and make w.formatValue always a defined function that returns its first arg || null?