Now I understand. byUserId[entry.user_id] doesn't habe an entry.project_id key, but that's not an issue as I am assigning it here rather than accessing it.