title: Checking if Realm is empty?
body: <p>I'm trying to use Realm to store a local database of objects. The app checks if the current session is first load and if so populates the local database with an api call. But, if the database is not empty, I would like to use the data already available. To do this, I need to know whether the database is empty or not.</p>
  
  <p>I found this issue on github, but they dont provide a workaround: 
  <a href="https://github.com/realm/realm-java/issues/766" rel="nofollow">https://github.com/realm/realm-java/issues/766</a></p>
  
  <p>So how should this be done?</p>