is this code improvable?
<p>Currently my mind is under heavy pressure and I can't stay a long time focusing on one single issue, I am pretty sure that the way I made it is basic and can be improved to make it smaller and easier (more professional maybe ?) code; </p>

<pre><code>&lt;?php
$intro_id = rand(1,2);
if($intro_id == 1 &amp;&amp; !empty($options['hidden_intro_one'])){
    $hidden_intro = $options['hidden_intro_one'];
}
elseif(!empty($options['hidden_intro_two'])){
    $hidden_intro = $options['hidden_intro_two'];
}
else{
    //back to circle number 1
    $hidden_intro = $options['hidden_intro_one'];
}
?&gt;
</code></pre>

<p><strong>Partially SOLVED :</strong>
the solution was to use array_rand() function like this : </p>

<pre><code>&lt;?php
    $random_intro = array($options['hidden_intro_one'],$options['hidden_intro_two']);
    $hidden_intro = $random_intro[array_rand($random_intro)];
?&gt;
</code></pre>

<p>But if one of the intros is left empty, it will appear empty when you echo the code, while I want to print the other intro (if not empty) instead...</p>
