Simplify isLocal().

No functionality change.