Used "in" instead of "has_key"