def METHOD_NAME(db, table, key):
    error_info = [ ]
    tbl =  swsscommon.Table(db, table)
    keys = tbl.getKeys()
    if key not in keys:
        error_info.append("The table with desired key %s not found" % key)
        return False, error_info
    return True, error_info