verify that the object is not an array

cc @Raynos