I think it should just be in `Composer\Util\Filesystem::ensureFileExists($file, $content = '')`. There is no point in making command helpers while this is something that could be reused in various places in composer I guess wherever we write a new file.