Remove depreceated function has_key.

Signed-off-by: Matěj Cepl <mcepl@redhat.com>