how to find out if something is empty (or null/undefined/missing)

I was hoping I could use this to determine if answer.answer was blank or missing entirely but when answer is undefined, it fails.

it seems like it shouldn' t check answer.answer|is_empty unless answer|is_empty is false

I'm unclear exactly what part its failing on - and why is this logic bad? I'm not sure what else to use.

2 replies