In Swift, there are essentially two main ways to check whether a given collection is empty. We can either check if the collection’s count is equal to 0, or we can use the dedicated isEmpty property. At first, it might seem like those two ways are completely identical in terms of how they behave. In […]