Should I use optional chaining?

You can use optional chaining when attempting to call a method which may not exist . This can be helpful, for example, when using an API in which a method might be unavailable, either due to the age of the implementation or because of a feature which isn’t available on the user’s device.

Read more