Add isNear function and its privates dependencies.