This php if else code on my website is not working
<pre><code>&lt;?php if (get_the_author_meta('description')) {  ?&gt;
    &lt;?php
    $author_ID = get_the_author_meta('ID');
    $username = get_the_author_meta('display_name', $author_ID); ?&gt;

    &lt;div class="mm-author-box"&gt;
        &lt;figure class="mm-author-box-avatar"&gt;
            &lt;?php echo get_avatar($author_ID, 70); ?&gt;
        &lt;/figure&gt;
        &lt;?php if ($author_ID === 4) { ?&gt;
            &lt;div class="mm-author-name"&gt;
                &lt;a href="&lt;?php echo "http://google.com" ?&gt;"&gt; &lt;?php echo $username; ?&gt; &lt;/a&gt;
            &lt;/div&gt;
            &lt;div class="mm-author-bio"&gt;
                &lt;?php echo get_the_author_meta('description'); ?&gt;
            &lt;/div&gt;
    &lt;/div&gt;
    &lt;?php } ?&gt;
    &lt;?php else { ?&gt;
        &lt;?php if ($author_ID === 9) { ?&gt;
            &lt;div class="mm-author-name"&gt;
                &lt;a href="&lt;?php echo "http://yahoo.com" ?&gt;"&gt; &lt;?php echo $username; ?&gt; &lt;/a&gt;
            &lt;/div&gt;
            &lt;div class="mm-author-bio"&gt;
                &lt;?php echo get_the_author_meta('description'); ?&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        &lt;?php } ?&gt;
&lt;?php } ?&gt;
</code></pre>

<p>It is a code to display author name and hyper link it.
From the first if statement if author has a description then go inside
Second if statement: if authors ID is 4 then execute the code below if not then
Else, there is one extra div inside the else statement which is for <code>&lt;div class="mm-author-box"&gt;</code> which is outside the if statement. 
The problem is that when I put this code it breaks the page.. Only the header of the website loads and the content below it doesn't because i have placed this code in the php file which is a template for the page content.
I think there is some syntax problem coz I used the code without else statement and it worked.</p>