protected function isHasOneRelation($inserts)
    {
        $first = current($inserts);

        if (!is_array($first)) {
            return false;
        }

        if (is_array(current($first))) {
            return false;
        }

        return Arr::isAssoc($first);
    }
protected function isHasOneRelation($inserts)
    {
        $first = current($inserts);

        if (!is_array($first)) {
            return false;
        }

        if (is_array(current($first))) {
            return false;
        }

        return Arr::isAssoc($first);
    }
protected function isHasOneRelation ( $ inserts ) { $ first = current ( $ inserts ) ; if ( ! is_array ( $ first ) ) { return false ; } if ( is_array ( current ( $ first ) ) ) { return false ; } return Arr :: isAssoc ( $ first ) ; }
Is input data is has-one relation.

@param array $inserts

@return bool
Is input data is has - one relation .