code: function (page) {
          if (!lang.isNumber(page) || page < 1) {
              return false;
          }
  
          var totalPages = this.getTotalPages();
  
          return (totalPages === Paginator.VALUE_UNLIMITED || totalPages >= page);
      }
docs: Does the requested page have any records?
  @method hasPage
  @param page {number} the page in question
  @return {boolean}