'return whether the template exists'

def exists(self):

    if self.data:
        return True
    t_results = self._get('template', self.name)
    if (t_results['returncode'] != 0):
        if ('not    found' in t_results['stderr']):
            return False
        else:
            raise OpenShiftCLIError(('Something    went    wrong.    %s' % t_results))
    return True
