title: Doing OR with multiple conditions using Optional wrapper
body: <p>I am trying to understand and use Java 8 - Optional feature. I would like to refactor this code block. Without Optional I have such a condition.</p>
  
  <pre><code>ClassA objA = findObject();
  if(objA == null || objA.isDeleted()){
    throw Exception("Object is not found.");
  }
  </code></pre>
  
  <p>I want to transform this block using Optional wrapper. I have read about filter, ifPresent functions but I could not find a way. Maybe it is simple but I am new to Java 8. I would appreciate if you could help.</p>