def find_vehicle_collateral_by_id(vehicle_id: int, vehicle_collateral):
    """Search existing list of vehicle_collateral objects for a matching vehicle id."""
    collateral = None

    if vehicle_id and vehicle_collateral:
        for v_collateral in vehicle_collateral:
            if v_collateral.id == vehicle_id and not v_collateral.registration_id_end:
                collateral = v_collateral
    return collateral