title: Cleaner way to check if null
body: <p>I have a class that holds a couple of byte arrays, some could be empty some not. And I want to return the first non null array (if there is one) or null if there isn't. But the code just seems so redundant and ugly. </p>
  
  <pre><code>public byte[] getFirstPhoto() {
      if (photo1 != null) {
          return photo1;
      }       
      if (photo2 != null) {
          return photo2;
      }
      if (photo3 != null) {
          return photo3;
      }
      if(videoThumbnail != null){
          return videoThumbnail;
      }
      return null;
  }
  </code></pre>
  
  <p>Is there anyway to clean that up, or not really? </p>