title: How to check if HTML sessionStorage is not empty?
body: <p>G'day guys,</p>
  
  <p>I'm trying to figure out the best way to check for empty <code>storageSession</code> in HTML5.</p>
  
  <p>I noticed that some browser returns null and some return just empty space if you clear or did not set any values to the <code>sessionStorage</code>.</p>
  
  <p>I've tried the following</p>
  
  <pre><code>if (sessionStorage.getItem('value1') == "null" &amp;&amp; sessionStorage.getItem('value2') == "null") {
  </code></pre>
  
  <p>But it doesn't seem to work. </p>
  
  <p>Anyone got a better way to check if a <code>sessionStorage</code> is empty?</p>
  
  <p>Appreciate your help on this and thank you in advance.</p>