Changed the test to see if value is an array