require 'set' should remain outside of the conditional.