Fixed improper check for empty on parent object.