def METHOD_NAME(node, cstruct):
    if kw["dbsession"].query(model).filter(model.id == cstruct).count() == 0:
        raise colander.Invalid(node, f"Value {cstruct} does not exist in table {model.__tablename__}")