<?php if (!empty($errors) && is_array($errors)) : ?>
	<div class="alert alert-danger">
		<ul class="newsletters_nolist">
			<?php foreach ($errors as $err) : ?>
				<li><i class="fa-solid fa-triangle-exclamation"></i> <?php echo wp_unslash($err); ?></li>
			<?php endforeach; ?>
		</ul>
	</div>
<?php endif; ?>