you could just go with `if (!pointCache[pointType])` or `pointCache.hasOwnProperty(pointType)`