javascript leaving an empty if statement
<p>I would like to know if leaving an empty if statement for certain situations as:</p>

<pre><code>else if(typeof console === 'undefined'){}
</code></pre>

<p>Just to have the code bypass the rest of the function It is an accepted and safe way to work or there are other recommendation practices for these cases?. Thank you.</p>
