Replace is_null() with === / !== NULL

Exact same behavior, but faster. I also think it's more readable.
[ci skip] Fix issue #2157 - docs on the email library
A few adjustments to previous commit
Pull from CI Git