You don't need this check here, because you already does it in the onBootstrap method.