Archive page switch

<?php

//This block is for the archive.php file

$categories4 = get_categories('child_of=4');

foreach ($categories4 as $cat) {

$the_category = $cat->cat_ID;

$check_category = is_category($the_category);

if ($check_category == 1){

include ('archive-category4.php');
exit;
}
}

if (is_category (4)) {

include ('archive-category4.php');
exit;
}

include ('archive-blog.php');

?>