/**
 * Returns years that have a press release
 * @return array years
 */
function pressReleaseYears()
{
    $years = array();
    $first_year = 2009;
    $current_year = date('Y');
    while ($current_year != $first_year - 1) {
        if (!empty(pressItemsByYear($current_year))) {
            array_push($years, $current_year);
        }
        $current_year--;
    }
    return $years;
}
        }
        ?>
                    <?php 
        $counter++;
        ?>
                  <?php 
    }
    ?>
                </ul>
              </div>
              <table class="table year table-responsive">
              <?php 
    foreach (pressReleaseYears() as $year) {
        ?>
                <?php 
        foreach (pressItemsByYear($year) as $press_release) {
            ?>
                  <?php 
            if ($year == pressReleaseYears()[0]) {
                ?>
                    <tr data-year="<?php 
                echo $year;
                ?>
">
                  <?php 
            } else {
                ?>
                    <tr data-year="<?php 
                echo $year;
                ?>
" style="display: none">