Add allowEmpty scope configuration option