def get_standard(obj, standard):
    """
    A function that allows to return a standard value for an object, if the object is None.

    :param obj:         Object to check if it's None.
    :param standard:    Standard value for the object
    :return:            return the object or the standard value
    """
    if obj is None:
        return standard
    return obj