check existence of ipaddress6 correctly