Finished the template and instance check exists method.