It seems that parent categories have category_parent = 0
in the database, so you could use this to filter only parent categories:
<?php if(is_category_parent('0')) : ?>
~ Displays only if current is a parent category ~
<?php endif; ?>
This way we can use a template to parent and another one to children categories.