How would value ever be `undefined` here?  In the lines immediately above, it was cast to `""` if falsey, and `JSON.stringify()`ed if not a string.