Fix arrays.isArray() function (references could be not defined)