Added method to check whether the generator has been initialized