Fix typo.
Check for 'if x then ()'.
Ignore some corner case for ifelse.