has -> haskey

Fixes has() deprecation warnings.