test whether ip is null