Using the side of a chef’s knife, mash anchovies, if using, and garlic on a cutting board until a smooth paste forms. Transfer paste to a large bowl and whisk in lemon juice, mustard, and a big pinch of salt. Add egg yolk (or mayonnaise) and whisk until smooth. Gradually add oil, whisking constantly until emulsified. Whisk in 3 Tbsp. grated Parmesan.