Colour: refactor isBlack and isWhite