original_string: private function isSuccessful(Response $response): bool
      {
          if ($response->statusCode()->value() !== 200) {
              return false;
          }
  
          $json = Json::decode((string) $response->body());
  
          return count($json['errors']) === 0;
      }
code: private function isSuccessful(Response $response): bool
      {
          if ($response->statusCode()->value() !== 200) {
              return false;
          }
  
          $json = Json::decode((string) $response->body());
  
          return count($json['errors']) === 0;
      }
code_tokens: private function isSuccessful ( Response $ response ) : bool { if ( $ response -> statusCode ( ) -> value ( ) !== 200 ) { return false ; } $ json = Json :: decode ( ( string ) $ response -> body ( ) ) ; return count ( $ json [ 'errors' ] ) === 0 ; }
docstring: Check if the response is successful
  
  @param Response $response
  
  @return bool
docstring_tokens: Check if the response is successful