double checking if statement with is_file
<p>does this look valid? I'm still writing the database coding for it but I want to make sure I'm on the right path so I won't have to many errors when I test.</p>

<pre><code>$filechk1 = "../temp/files/" . $data[0] . ".doc";
$filechk2 = "../temp/files/" . $data[1] . ".doc";

if(is_file($filechk1) &amp;&amp; is_file($filechk2)) {
        $rec_type = "3";
    } else if (!is_file($filechk1) &amp;&amp; is_file($filechk2)) {
        $rec_type = "2";
    } else if (is_file($filechk1) &amp;&amp; !is_file($filechk2)) {
        $rec_type = "1";
    }
</code></pre>
