Added method to check if array is numerically indexed