Ending a boolean inside a function without else {} (philosophical)?
<p>I am sorry for posting a pretty redundant question. I was wondering if it was really necessary to use <code>else {}</code> if the code just stops or returns a value. In theory, is it really necessary to put  <code>else{}</code> in these scenarios?</p>

<pre><code>function check() {
    if($something == "something") {
        exit;
    }
    echo "hello";
}
</code></pre>

<p>Or</p>

<pre><code>function check() {
    if($something == "something") {
        return true;
    }
    echo "hello";
}
</code></pre>

<p>The reason I posted this was because I saw some "professional" code which I guess they thought it looked "good."</p>
