Checks the cell type to see if it represents the cell_type passed in.

    Args:
        cell_type: The type id for a cell match or None for empty match.

def check_cell_type(cell, cell_type):
    '''
    Checks the cell type to see if it represents the cell_type passed in.

    Args:
        cell_type: The type id for a cell match or None for empty match.
    '''
    if cell_type == None or cell_type == type(None):
        return cell == None or (isinstance(cell, basestring) and not cell)
    else:
        return isinstance(cell, cell_type)