You can use modern objective-c syntax here.

`_categories[@(category.identifier)] = category;`

This will also crash if category is nil, so you should put a test in for that + fix this.