Yes single attribute may be as string, but I think it is not necessary to teach programmers to poor :)
I would even removed the conversion to the array for consistency