Change .empty? to .take.nil?

...hopefully fixes performance problems