def session_exist?
      sessions = Diplomat::Session.list
      sessions.any? { |s| s['ID'] == id }
    end
def session_exist?
      sessions = Diplomat::Session.list
      sessions.any? { |s| s['ID'] == id }
    end
Does the session exist