Determine whether a precompiled template exists in the cache

Aug 9, 2011 at 8:09 AM

Is there a way to determine whether a precompiled template exists in the cache before calling Run()?  I'm using RazorEngine to generate email content, and I have templates customized for particular brands.  However, if a customized template doesn't exist for a given brand, I want to fall back on the default email template.  At the moment, the only way I can see to do this is to call Run() and catch the exception that is thrown when the template can't be found in the cache.  Is there a better way to do this?