Can we simplify this with something like 
```php
if ( $t_anon_allowed == OFF && is_blank( $p_username) ) {
          return false;
}
```
?

It would make the follow-up code easier to read.