Could you simplify this to `@metrics.has_key?(component.key) && @metrics[component.key].size > 0` without the return statements? And is there an `.empty?` check instead of the size comparison?