title: How to confirm id is not present in jasmine test case
body: <p>I am writing jasmine test cases for angularjs testing. In one view student can't see the button. I am checking based on id length but i am getting <code>expected '1' instead of '0'</code>. Button is not there in view still it can see the id. </p>
  
  <p>Is there any other condition to check?</p>
  
  <pre><code>element.all(by.id('create_course_button')).then(function(items) {
    expect(items.length).toBe(0);
  }); 
  </code></pre>