Done deal - I've changed `if ( typeof value === "undefined" || value === null )` to `if ( value == null )`.