How to tell if an array contains an object or element

Apple has made it really easy to work out if an array contains a specific object or element. This is because the Swift team have kindly provided us with the contains() method. This method returns either a true or false (Boolean) depending on whether or not that item exists.

Told you it was easy 🙂