Move 'isInitialized' check into the init function.