PHP: Obligatory params
<p>What would be the best way, when it comes to practices, to return false if some param is not passed to a PHP function?</p>

<p>Mainly because I am calling this function will be called with params that come from the frotend, which means that the user could pass null as a param, and I want to return false if that happens.</p>

<p>At the top of the function I put:</p>

<pre><code>if (empty($param1) || empty($param2) || empty ($param3)) {
            return false;
        }
</code></pre>

<p>Any better ways of doing this?</p>
