def validate_param(value, invalid_list=None):
    """
    Ensure the param is a valid value by checking that it's not present in a list of invalid values.
    :param value: Param value to be tested
    :type value: string, list, or object
    :param invalid_list: (optional) List of values to be considered invalid
    :type invalid_list: list
    :return: Param value if valid, else None
    :rtype: string, list, or object
    """
    invalid_list = invalid_list or [None, '', ' ', 0, '0', [], [''], {}, {''}]
    if value not in invalid_list:
        return value
    else:
        return None