You can just use this._cache.size to get its cardinality. If 0, it's empty.