fix for empty rules; add isLikeColor