Check for array/object

Prevent array->string conversion errors.