Extract comparison array to a constant for the time being until removing the checks completely.

Extract comparison array to a constant for the time being until removing the check completely.