use isArray helper

for better browser support