React Native Loop Through Array Javascript Length Validation