title: Object is possibly 'undefined' - on window local storage get Item method
body: <pre><code> if (window?.sessionStorage?.getItem('accessToken')?.length &gt; 0) {
    this.navigateToApplication();
  }
  </code></pre>
  <p>getting an error as :</p>
  <p><code>Object is possibly 'undefined'.ts(2532)</code></p>
  <p>how to fix this? I am trying to get the value by  optional here.</p>