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
If you need to check that the content is a string, not null and not an array, use a simple typeof comparison:
if typeof email isnt "string"