Can be simplified as just "return fontNameWoStyle in serifFonts || fontNameWoStyle.search(/serif/gi) !== -1;