Expanded concepted of non-emptiness to deal with arrays that have a nil entry.
Removed puts.