Hi @romik this is not a helpful reply. Please elaborate about the issue you are having, and provide some context around the code you are calling, and what you are trying to do overall.
There are a few ways of knowing if a template exists, but besides render_existing all of them are undocumented private api. render_existing is only available within views not within controllers. Therefore, no this cannot be done from the controller level.
I’m not sure if this is the same person (different usernames are used), but this conversation came up on Reddit about a month ago. I only bring this up because both posters seem to have the same attitude towards people trying to help them.