simplify deep checking of color