has_key not working???, workaround