Replaced deprecated has_key.
Replaced deprecated has_key.
Merge pull request #244 from fintler/depr_has_key

Replaced deprecated has_key.