if is faster than ternary operator