I've had the issue to with null and undefined, so tried to create a global formula to check for all 'empty' values. It seems to reliably return true for undefined, any null value and any empty string, object or array. Useful for looking for the absence of things.