Changed from if any? to unless empty? for efficiency.