Use direct check against array keys instead of Hash::get()

Hash::map() was needed since the icon mapping used to be under a nested
array. Since we have a separate variable for this, remove its use.