test for undefined, not truthy; fix #86