<?php if (isset($images) && is_array($images)){ ?>
<ul>
<?php
foreach ($images as $imageKey => $image) {
    $curImage = isset($image['imageSmall']) ? $image['imageSmall'] : '';
    $curImageBig = isset($image['imageBig']) ? $image['imageBig'] : '';
    $curTitle = isset($image['title']) ? $image['title'] : '';
?>
    <li>
        <a href="<?php echo BASE_URL.htmlspecialchars($curImageBig); ?>" title="<?php echo htmlspecialchars($curTitle); ?>">
            <img src="<?php echo htmlspecialchars(BASE_URL.$curImage); ?>" alt="<?php echo htmlspecialchars($curTitle); ?>" />
        </a>
    </li>
<?php } ?>
</ul>
<?php } ?>
