replace Array#present? with Array#empty?