Adding an is_internal function for IP addresses