title: Better way to check for variable empty or null or parent is null
body: <p>I have a condition in java as follows:</p>
  
  <pre><code>if(a == null || a.getRecords() == null || a.getRecords().isEmpty()) {
  }
  </code></pre>
  
  <p>Is there a better way to write this condition using some google guava library or apache library?</p>