Changed 'unless' for 'next if'