off-topic post
If the policy is enforced uniformly for ALL students regardless of race or gender then, no, it is not.
However, I do agree that there are more positive ways of encouraging this particular kind of safe behavior. One way is to have a school fundraiser for the families that find expenditures of that sort to be a real hardship, and economic viability is often in conjunction with race. For example, we have a “reduced lunch” and “free lunch” program for people who are economically challenged. Student safety, like proper nourishment, should not be dependent upon a student’s economic status.