ok, could you please change to `if headers, err := getHeaders(authConfig); err == nil && headers != nil {`