Is there a GetNearest() that returns null if the point is not on a grid?

Hello,
I was wondering if there is a way to get GetNearest() to return a null Node or a null NNInfo if the point provided is not on any graph.

Is there a way to do this?

I was hoping there would be a way for GetNearest() to return a null Node or a null NNInfo if the point given to the function is off of all the graphs instead of returning the nearest node on the closest graph. How would I do this?