Should probably check if an array is actually there
IE8 fixes