Change to instanceof Array