I've done it - I don't know that it helps in traffic (no reason that it wouldn't), but I think it was useful when another cyclist latches on behind me. Keep it simple, a small lever switch zip-tied to the brake cable and activating against the cable stop.