removed warnings-flood after writing yaml files, by checking is value is an array.