I wonder if we should add a utils method that checks if the array is empty?