Test first object to see if an array or object