def either(a, b):
    """
    :param a: Uncertain value (might be None).
    :param b: Default value.
    :return: Either the uncertain value if it is not None or the default value.
    """
    return b if a is None else a