Explain undefined effect in logical expression

Some functions return undefined values when a condition is not known. When used as part of a logical expression, the knock-on effect makes the result of the expression unknown. A 
section has been added warning of this pitfall and suggesting a way to avoid it.