def _check_param(value, possible):
    """Check a string parameter according to a list of possible values.
    The test is case insensitive.
    """
    if not value:
        return True
    possible = [s.lower() for s in possible]
    return value.lower() in possible