Fix deprecation warnings
Merge pull request #9 from simonster/deprecation

Fix has() deprecation warnings