In UML State Diagrams, each transition is triggered by one and only one event. In your case it seems that one event will cause a transition to two different states or, as you noted, had an optional path. What I would personally advise is the following:

What I did is use a Pseudostate to branch on the condition you mentioned. So if your condition holds, you transition to the bottom most final state, if not you transition right. While the end state is the same, your diagram now clearly outlines different behaviour on each transition.
I apologize for not using the correctly rounded box, the online drawing tool I used didn't provide these. As you can see I used two final states but you can use only one, both are permitted in UML.