protected function isAssociativeArray($value)
    {
        $numericKeys = true;
        $i = 0;
        foreach ($value as $key => $v) {
            if ($i !== $key) {
                $numericKeys = false;
                break;
            }
            $i++;
        }
        return !$numericKeys;
    }