def isElective(optionNumber):
    """
    Checks whether a code indicates an elective option number.

    :param optionNumber: Code to test
    :return: True if option number is a valid elective number, False otherwise.
    """
    return (optionNumber & 1) == 0