public static function isOneOf($value, iterable $choices): bool
    {
        foreach ($choices as $choice) {
            if ($value === $choice) {
                return true;
            }
        }

        return false;
    }