I am getting an error on below code while I updating my code to latest Swift syntax.
- Binary operator '==' cannot be applied to operands of type '()' and 'Bool'
- Call can throw, but it is not marked with 'try' and the error is not handled

Please help me in finding the solution.