private static bool? IsAuthorized(HttpContextBase context) { Debug.Assert(context != null); var handlers = GetAuthorizationHandlers(context).ToArray(); return handlers.Length != 0 ? handlers.All(h => h.Authorize(context)) : (bool?) null; }