Check if the object is an object.