fixed hasProperty call to use hasVariable which didn't seem to work
Merge pull request #48 from graemerocher/master

fixed hasProperty call to use hasVariable which didn't seem to work