Weather.getHourlyForecast() works but Weather.getHourlyForecast()[1] does not

Hello. I want to check forecast in next two hours. So I verify if Weather.getHourlyForecast() is not null and because it is not, I proceed, Then I found I am getting error when trying to get value from Weather.getHourlyForecast()[1] - I get Array out of bounds error. It only happens sometimes when internet connection is not good.