public string WriteIf(string contents, bool condition) { return (condition) ? contents : String.Empty; }