Man contesting ticket for walking on street

A man is contesting a ticket for walking on the street where the sidewalk was icy and unsafe. The man, who’s black, says he feels race was a factor, and indeed the police asking him where he was going seems like a giveaway. Why should anyone have to tell police where they’re going? And who hasn’t taken to the street occasionally this winter? Some days, the sidewalks on my block have been so bad that walking in the street and standing aside for cars has been safer. But I’m a white woman so police don’t see me.