presto-jdbc/src/main/java/io/prestosql/jdbc/PrestoConnection.java/PrestoConnection/isValid
class PrestoConnection:    @Override
    public boolean isValid(int timeout)
            throws SQLException
    {
        if (timeout < 0) {
            throw new SQLException("Timeout is negative");
        }
        return !isClosed();
    }