but it would be better if this line move into `if (manifest.connections) {}` block for writing into file only if there is connections in manifest.