I have done it both ways and I have to say, mixing the ricotta with egg does help it to set up better. Without it, the ricotta has a tendency to melt away; melding with the rest of the ingredients. It isn't a necessity, but it does help to create beautifully defined layers and has a great texture.