<?php

namespace NoahVet\Reef\Jane\Runtime\Normalizer;

trait CheckArray
{
    public function isOnlyNumericKeys(array $array): bool
    {
        return \count(\array_filter($array, static fn ($key) => \is_numeric($key), \ARRAY_FILTER_USE_KEY)) === \count($array);
    }
}
