cleaned up some has_key usuage, replaced with in syntax