redoing nested logic in header.php