original_string: private function isPrivateRequest(Request $request)
      {
          foreach ($this->options['private_headers'] as $key) {
              $key = strtolower(str_replace('HTTP_', '', $key));
  
              if ('cookie' === $key) {
                  if (\count($request->cookies->all())) {
                      return true;
                  }
              } elseif ($request->headers->has($key)) {
                  return true;
              }
          }
  
          return false;
      }
code: private function isPrivateRequest(Request $request)
      {
          foreach ($this->options['private_headers'] as $key) {
              $key = strtolower(str_replace('HTTP_', '', $key));
  
              if ('cookie' === $key) {
                  if (\count($request->cookies->all())) {
                      return true;
                  }
              } elseif ($request->headers->has($key)) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: private function isPrivateRequest ( Request $ request ) { foreach ( $ this -> options [ 'private_headers' ] as $ key ) { $ key = strtolower ( str_replace ( 'HTTP_' , '' , $ key ) ) ; if ( 'cookie' === $ key ) { if ( \ count ( $ request -> cookies -> all ( ) ) ) { return true ; } } elseif ( $ request -> headers -> has ( $ key ) ) { return true ; } } return false ; }
docstring: Checks if the Request includes authorization or other sensitive information
  that should cause the Response to be considered private by default.
  
  @return bool true if the Request is private, false otherwise
docstring_tokens: Checks if the Request includes authorization or other sensitive information that should cause the Response to be considered private by default .