<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def is_registered(ext):
    ''' Returns true when a template exists on an exact match of the provided file extension '''
    return Lean.template_mappings.has_key(ext.lower()) and len(Lean.template_mappings[ext])