This `if (..)` should not exist.

Basically the code should be:
```
$cp = $phpbb_container->get('profilefields.manager');
$additional_search_parms = $cp->build_custom_fields_search_array(); 
$cp->generate_search_fields();
```
Whether there are 0 or 1+ profile fields shouldn't matter.
The manager should take care of it