private boolean step(Cursor cursor) {
   return reverse ? cursor.previous() : cursor.next();
 }