title: In es6 I need my promise to return true or false when done
body: <p>In es6 I need my promise to return true or false when done</p>
  
  <p>This is my attempt but it returns a promise and I need it to be true or false</p>
  
  <pre><code>return this.isUserAuthenticated()
     .then(() =&gt; this.checkIfTeacherProfileExists());  
  </code></pre>
  
  <p>The return part needs to be true or false.</p>
  
  <p><strong>This is what one of the returns looks like:</strong></p>
  
  <pre><code>  isUserAuthenticated = (): Promise&lt;any&gt; =&gt; {
      return new Promise((resolve, reject) =&gt; {  
          this.authService.checkIfLoggedIn().then((isAuthUser: boolean) =&gt; { 
              resolve(true); 
          });
      }); 
    }  
  </code></pre>