Returns true if a year is valid based on a given year, range of years, sequences of years, or any mixture of these.