Here, the line return session.Dictionary.ContainsKey(SessionId) must be able to return the values of both true and false. I am aware the if statement I am using
return session.Dictionary.ContainsKey(SessionId)