changed to isArray instead of arrayElementTemplate