public static function validIpv6($value)
    {
        if (empty($value)) {
            throw new \InvalidArgumentException("Empty IPv6 address given.");
        }

        if (!filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
            throw new \InvalidArgumentException("Invalid IPv6 address given.");
        }

        return $value;
    }