check whether a year's a leap year in swift