feels like this could be more general and/or you could explicitly check the existence of the `district_id` first