splay tree polish ternary statement for readability