how to avoid iteratorin ruby if it doesnt have a value? code example Example: ruby for loop for element in array do element.do_stuff end