fixed isset problem with parent objects, used magic method __isset() to check parent object