Added function validate_array.