code: func (p *PageStats) GetTotalPages() int {
  	if p == nil || p.TotalPages == nil {
  		return 0
  	}
  	return *p.TotalPages
  }
docs: // GetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise.