code: function validateScopeValues(scope, pageCount) {
                  // Block where the page is larger than the pageCount
                  if (scope.page > pageCount) {
                      scope.page = pageCount;
                  }
  
                  // Block where the page is less than 0
                  if (scope.page <= 0) {
                      scope.page = 1;
                  }
  
                  // Block where adjacent value is 0 or below
                  if (scope.adjacent <= 0) {
                      scope.adjacent = 2;
                  }
  
                  // Hide from page if we have 1 or less pages
                  // if directed to hide empty
                  if (pageCount <= 1) {
                      scope.Hide = scope.hideIfEmpty;
                  }
              }
docs: Validate and clean up any scope values This happens after we have set the scope values