Checking template file exists