Changed array type check for Firefox support