def is_historical_data_present(generation_reports, weather_forecasts, hours_past):
    """
    Depending on the model used, we rely on some historical data
    when the generation forecast is done. This function checks that we
    have the necessary data.
    """

    return (
        len(generation_reports) >= hours_past and len(weather_forecasts) >= hours_past
    )