fool-proof check for Cache::removeEntry