It's not best place for this check. Env is not responsible for service you add. Do you have reason to do so?