You can reset($variables['date_id']) to get the first element.