only use has_key method on dict instances