protected function hasIntegerKey($array) { foreach ($array as $k => $v) { if (gettype($k) === 'integer') { return true; } } return false; }