I\'ve got this code that checks for the empty or null string. It\'s working in testing.
eitherStringEmpty= (email, password) -> emailEmpty = not email? or
unless email? and email console.log 'email is undefined, null or ""'
First check if email is not undefined and not null with the existential operator, then if you know it exists the and email part will only return false if the email string is empty.
and email