title: How to check if element exists using a lambda expression?
body: <p>Specifically, I have TabPane, and I would like to know if there is element with specific ID in it.</p>
  
  <p>So, I would like to do this with lambda expression in Java:</p>
  
  <pre><code>boolean idExists = false;
  String idToCheck = "someId";
  
  for (Tab t : tabPane.getTabs()){
      if(t.getId().equals(idToCheck)) {
          idExists = true;
      }
  }
  </code></pre>