Since it's just two tests (-isFileURL and non-nil path), it doesn't seem worthwhile unless the two errors were the same (which they're not currently, but might as well be).