Checks for undefined, initial idea for boolean handling, per issue #22