add Application.IsInitialized