string array is empty or not and assign to method swift 5 code example Example: swift empty an array myArray.removeAll()