Should this also check that `rule.weight` is also not a number? In case someone wants to set weight to 0?