I think this should be isdefined should fix #105
Merge pull request #106 from dhoegh/patch-1

Fix #105