check if ip exists