Changed typeof check on colorsAssigned to a hasOwnProperty conditional.

In this case it is simpler and more precise to use `hasOwnProperty` to check for the existence of `itemType` on `colorsAssigned`.  This is both more consise and prevents the possibility of a collision with a key that matches `itemType` on the prototype of `colorsAssigned`.