I'd avoid arrays in bash unless absolutely necessary. This can just be a whitespace-separated string.