I tried @Mehdi Varse's code reply, and it seems that his method would always work because it's evaluation of the (if value == null) would always return true for lastName. At least, when i tried to apply it to my situation (which is related). it would always fall through.