private static boolean cursorIsEmpty(Cursor c) {
    return c == null || c.getCount() == 0;
  }
Returns true if the cursor is null, or contains no rows.
java/com/google/android/apps/authenticator/otp/AccountDb.java