Check before changing color