add conditional to rescue if chart.share_prices is empty