Formatting conditionals in index.php