fixes #284 - replace deprecated has_key method