get rid of isLocal variable

its only use has been eliminated, there's no reason to keep it.