`return [] unless IdentityCache.should_cache?` would avoid further `nil` checks.