You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: errors.go
    path of file: ./repos/neosync/backend/internal/errors
    
    the code of the file until where you have to start completion: package nucleuserrors

import (
	"errors"

	"connectrpc.com/connect"
	"google.golang.org/grpc/codes"
	"google.golang.org/grpc/status"
)

// Wraps an error as an internal error. If the error is already an RPC error, returns tha
    
func IsNotFound(err error) bool {
	if err != nil {
		if status.Code(err) == codes.NotFound {
			return true
		}
		if connectErr := new(connect.Error); errors.As(err, &connectErr) && connectErr.Code() == connect.CodeNotFound {
			return true
		}
	}
	return false
}