Added has_key and is_member_of functions