improve property existence test

Signed-off-by: Clark Wang <clark.wangs@gmail.com>