Or you could do this:<p><pre><code>    phoneCallRegistry.callWithIdentifier(identifier)?.hangUp()
</code></pre>
The ? means that hangUp() will not be called if callWithIdentifier(identifier) returns nil.