used isarray for old ie