def isvalid(ctx, a):
    """ Test if an identifier is known.
    
    Returns a string '1' if valid, '0' otherwise.
    """
    
    plotid = a.plotid()
    
    return "%d" % (1 if ctx.isvalid(plotid) else 0)