bug: undefined method [] for nil class in line 69

This bug occurs if data['hypotheses'].first is an empty array