original_string: protected function isHasOneRelation($inserts)
      {
          $first = current($inserts);
  
          if (!is_array($first)) {
              return false;
          }
  
          if (is_array(current($first))) {
              return false;
          }
  
          return Arr::isAssoc($first);
      }
code: protected function isHasOneRelation($inserts)
      {
          $first = current($inserts);
  
          if (!is_array($first)) {
              return false;
          }
  
          if (is_array(current($first))) {
              return false;
          }
  
          return Arr::isAssoc($first);
      }
code_tokens: protected function isHasOneRelation ( $ inserts ) { $ first = current ( $ inserts ) ; if ( ! is_array ( $ first ) ) { return false ; } if ( is_array ( current ( $ first ) ) ) { return false ; } return Arr :: isAssoc ( $ first ) ; }
docstring: Is input data is has-one relation.
  
  @param array $inserts
  
  @return bool
docstring_tokens: Is input data is has - one relation .