# How do I know if NotebookLocate did not find the cell tag?

Is there a way to programmatically detect whether or not NotebookLocate[{"file", "cell tag"}] has found the cell? And then if not found, stay at current selection instead of jumping to the end of the notebook?

-

nb=InputNotebook[];
NotebookToolsNotebookCellTags[nb]

I think it's worth adding that NotebookTools` is an undocumented package. This answer confused me for a bit, until I figured that out. – ibeatty Jul 12 '15 at 19:37