test($parse): improve clarity of ternary tests