simplify IP_FOUND check