code: public static boolean hasMaxRows(RowSelection selection) {
  		return selection != null && selection.getMaxRows() != null && selection.getMaxRows() > 0;
  	}
docs: Is a max row limit indicated?
  
  @param selection The row selection options
  @return Whether a max row limit was indicated