I'm not a lawyer, this isn't legal advice. According to Illinois law, you have a moped but you NEED a valid driver's license to use it (not a motorcycle license). So if you were riding without a license you have no legal basis for any argument you make.
"(625 ILCS 5/1-148.2) (from Ch. 95 1/2, par. 1-148.2)
Sec. 1-148.2. Moped. A moped is a motor-driven cycle, with or without optional power derived from manually operated pedals, whose speed attainable in one mile is at least 20 mph but not greater than 30 mph, and is equipped with a motor that produces 2 brake horsepower or less. If an internal combustion engine is used, the displacement shall not exceed 50 cubic centimeter displacement and the power drive system shall not require the operator to shift gears.
(Source: P.A. 96-554, eff. 1-1-10.)"
Moped license law:
"(625 ILCS 5/6-104) (from Ch. 95 1/2, par. 6-104)
Sec. 6-104. Classification of Driver - Special Restrictions.
No person shall operate a motor vehicle unless such person has a valid license with a proper classification to permit the operation of such vehicle, except that any person may operate a moped if such person has a valid current Illinois driver's license, regardless of classification." (edited)