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: check.go
    path of file: ./repos/docker-ce/components/engine/vendor/gotest.tools/v3/poll
    
    the code of the file until where you have to start completion: package poll

import (
	"net"
	"os"
)
    
func FileExists(path string) Check {
	return func(t LogT) Result {
		_, err := os.Stat(path)
		if os.IsNotExist(err) {
			t.Logf("waiting on file %s to exist", path)
			return Continue("file %s does not exist", path)
		}
		if err != nil {
			return Error(err)
		}

		return Success()
	}
}