Refactored object attribute lookup to array search
Replaced array/push by map
Removed lodash call from sub view

This method was imported from PhotoTool and the lodash'ism remained
Refactored variable name