Using in instead of has_key