Added condition for object.child is array