Add isInitialized() function.