To check if it has any items yet, check if array.size or array.length is larger than 0.
Or you can use empty?:
x = [] puts "x is empty" if x.empty?