Allow testing of undefined set/env vars via if-else-fi (new feature).
Update notes for defined test.