Added __isset to check property existence