bool PayloadHasExpectedSession(MessagePayload toInput) { return toInput.HasAuthenticationSession() && cache.ContainsSession(toInput.GetAuthenticationSession()); }