[MOD]add optional judge for delegate wrapper
Merge pull request #1 from xiachufang/yudun1989/add_optional_judge

[MOD]add optional judge for delegate wrapper