replace any2array with validate_array