def is_leap_year(year):
    """
    Checks if a year is a leap year
    :param year: Year
    :type year int
    :return:
    :rtype: bool
    """
    return True if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0 else False