# File lib/ruote/util/lookup.rb, line 69
  def Ruote.unset (collection, key)

    k, c = lookup(collection, key, true)

    return collection.delete(key) unless c

    if c.is_a?(Array)
      c.delete_at(Integer(k)) rescue nil
    else
      c.delete(k)
    end
  end