private boolean loadNextPage(){
  result=pageable.getPage(query,skip,pageSize);
  index=0;
  if (result == null || result.isEmpty()) {
    return false;
  }
  return true;
}

private boolean loadNextPage ( ) { result = pageable . getPage ( query , skip , pageSize ) ; index = 0 ; if ( result == null || result . isEmpty ( ) ) { return false ; } return true ; }
retrieves results of next page of the query , and checks if a element is present in this new page .
