Array parsing
Split fns out to util