Updating type check for Array

The check for array was not working properly, this commit change the condition in order to use the aria.utils.Type.isArray method instead.