On more careful examination of the isEmail function, the first test is to see if the string is empty and if so it returns true. I can't imagine why that condition should return true, null or an empty string do not constitute an email address. My only thought for a reason would be if the field being tested is an optional field. In that case it shouldn't be the responsibility of the function but the form handler.
The function should return an absolute true/false that the string is an email and not. Comments? Thanks, John
