Changed __check_year method

Simpler code