Obviously there are cases where a map is better than an array or there would be no reason for its existence.