original_string: protected function isRecord($data)
      {
          if ($data instanceof Collection) {
              return false;
          }
  
          $keys = array_keys($data);
          return (in_array('id', $keys, true) || in_array('name', $keys, true));
      }
code: protected function isRecord($data)
      {
          if ($data instanceof Collection) {
              return false;
          }
  
          $keys = array_keys($data);
          return (in_array('id', $keys, true) || in_array('name', $keys, true));
      }
code_tokens: protected function isRecord ( $ data ) { if ( $ data instanceof Collection ) { return false ; } $ keys = array_keys ( $ data ) ; return ( in_array ( 'id' , $ keys , true ) || in_array ( 'name' , $ keys , true ) ) ; }
docstring: Tests the current response data to see if a single record was returned.
  
  @param array|Collection $data
  
  @return bool
docstring_tokens: Tests the current response data to see if a single record was returned .