Added checking if the year was avaliable