def is_year_archive?
      segments = params[:slug].split('/')
      (get_type_by_url == 'AR' && !segments[1].blank? && segments[2].blank? && segments[3].blank?) ? true : false
    end
def is_year_archive?
      segments = params[:slug].split('/')
      (get_type_by_url == 'AR' && !segments[1].blank? && segments[2].blank? && segments[3].blank?) ? true : false
    end
returns a boolean as to whether the current view is a year archive