public static bool HasMergeFields( this string content ) { if ( content == null ) return false; // If there's no merge codes, just return the content if (!hasLavaMergeFields.IsMatch( content )) return false; return true; }