Added check for nil first in set when performing #each on an empty set