Ref T5378. This repackages an existing check to see if a URI is a URI for the current install into a more reasonable form.
In an upcoming change, I'll use this new check to test whether http://example.whatever.com/T123 is a link to a task on the current install or not.