Added template checkup

The function will now see if the template provided exists or return a error message that the template was not found.