why do you need the null check of injector? isn't it always created in the constructor method?