code: public static boolean hasPosition(Cursor cursor, int position) {
          return !cursor.isClosed() && position >= 0 && position < cursor.getCount();
      }
docs: True if the cursor has a row at the position.
  
  @since 4.0.0