added a method MyArray#empty?