added function 'block_present'

with this function you can use it in templates like this:
<?php if (block_present('related')) {?>
			<div class="related">
			<?php the_block('related'); ?>
			</div>
			<?php } ?>