If the top of the muffins are getting dark before the inside bakes, you’re likely cooking them at too high of a temperature. I recommend investing in an oven thermometer (I love the DOT) to ensure your oven is actually the temperature it says. You can also place a piece of aluminum foil lightly over the top of the muffins to shield them from getting any darker.