Mix the eggs, garlic, cooked onion, if using, and cheese together, and season with salt and pepper. Pour over the cauliflower and bake for 15–20 minutes until the eggs are set and golden. Scatter with the chopped herbs before serving with a fresh green salad.