protected function isNumericArray(array $value) { foreach (array_keys($value) as $key) { if (is_string($key)) { return false; } } return true; }