If statement with init var