Made controller an option. By default page parts are not rendered by the controller
Oops. Had the if statement switched.
Replace render_esi with render because render_esi does not support the passing of objects:
https://github.com/symfony/symfony/issues/10524#issuecomment-38456634