I know this is convenient but isn't there a way how to ask if the template is there rather then catching an exception?