protected static function is_list($array) { foreach (array_keys($array) as $key) { if (!is_int($key)) { return false; } } return true; }