It may be better to implement a hook for installers to validate package configuration instead of adding this into base installer here.