Cleanup and do it a more simpler way suggested by Josh, just search for
the ',' to see if its a GM array.