class ActionDispatch::Request::Session

def has_key?(key)

Returns true if the session has the given key or false.
def has_key?(key)
  load_for_read!
  @delegate.key?(key.to_s)
end