<code>if( newValue === undefined ) {</code> should be sufficient.