This is C# using a JavaScript syntax. And I saw nothing about if statements, which I don’t have any problem with.

If you did this in Objective C you could break the chain on failure by returning NULL but I don’t see any ay of doing that here.

American Software Developer living in Vietnam. Classical musician (guitar, woodwinds), weightlifter, multilingual, misanthrope • XY

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store