Simplified `if` implementation