Merge if and else by negating the condition