Fix #105

I think this should be isdefined.