What would you change in my code for best practices/maintenance?
<p>I've got a small snippet of code below and I was curious what types of things you would change with regards to best practices/code maintainablity and so on.</p>

<pre><code>function _setAccountStatus($Username, $AccountStatus)
{
if ($Username == '' || ($AccountStatus != 'Active' || $AccountStatus != 'Banned' || $AccountStatus != 'Suspended')) {
    // TODO: throw error here.
}

$c1 = new Criteria();

$c1-&gt;add(UsersPeer::USERNAME,$Username);

$rs = UsersPeer::doSelect($c1);

if (count($rs) &gt; 0) {
    $UserRow = array_pop($rs);

    $UserRow-&gt;setAccountStatus($AccountStatus);

    try {
        $UserRow-&gt;save();
    } catch ( PropelException $e ) {
        return false;
    }

    return true;
}

return false;
}
</code></pre>
