title: How to check if no PDF is displayed in an implementation of 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1' Java library
body: <p>I am using <a href="https://github.com/barteksc/AndroidPdfViewer" rel="nofollow noreferrer">this PDF Library</a> in my application at the latest version.</p>
  <p>I have a <code>PDFView</code> object declared in this way:</p>
  <pre><code>PDFView pdfView = (PDFView) findViewById(R.id.pdfView);
  </code></pre>
  <p>And I would like to check whether if it is currently displaying/containing a PDF.</p>
  <p>I did this:</p>
  <pre><code>if(pdfView.getPageCount() == 0){
     ...
  }
  </code></pre>
  <p>which works, but I'd like something like <a href="https://github.com/barteksc/AndroidPdfViewer/blob/d243b39377f19c3eae41e227067da254ebbf731b/android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/PDFView.java#L289" rel="nofollow noreferrer">this line</a> in the library's source code. Sadly we cannot access <code>pdfFile</code> from outside, nor is given to us something like <code>isEmpty()</code> or <code>isNull()</code>.</p>
  <p>Is there a way to see if the inner pdf is null or not? Thank you.</p>