use `!defined(red)` for this and other colors, instead of comparing to 0.