In Objective-C, when I have an array
NSArray *array;
and I want to check if it is not empty, I always do:
if (array.count &
Option D: If the array doesn't need to be optional, because you only really care if it's empty or not, initialise it as an empty array instead of an optional:
var array = [Int]()
Now it will always exist, and you can simply check for isEmpty.
isEmpty