is_up: use ternary operator instead of dumbnessw