<?php if(!empty($data)): ?>
<tr>
    <td><?php echo $data->id; ?></td>
    <td><?php echo $data->action; ?></td>
    <td><?php echo $data->description; ?></td>
    <td><?php echo $data->date_created; ?></td>
</tr>
<?php endif; ?>