Since we do this twice, maybe wrap up in a local `isAbsolutePathOrUrl()` utility?  That naming helps clarify why we need two calls, also.