How to check if array is null or empty? March 28, 2023 by Tarik if (!array || !array.count){ ... } That checks if array is not nil, and if not – check if it is not empty.