Hide Related Articles when there is only one or less

This script hides your Related Articles panel when only one or no Related Articles are present. 

To use these, simply copy the relevant code at the very bottom of the Article template (if you're not sure how to do this, see here).

Use this if your Related Articles appear in the right hand column:

<script>
$(function() {
if( $('.related-panel ul li').length < 1 )  
$('.related-panel').hide();
});
</script>

Use this if your Related Articles appear below the article:

<script>
$(function() {
if( $('.ko-related-articles ul li').length < 1 )
$('.ko-related-articles').hide();
});
</script>