This function can be used to check if a given year is a leap year or not.
The special case of a null-input will give a return value of null.
Returns 1 if the given year is a leap year and 0 otherwise.