Cleaned up evalTernary a little