Change $apiuid to NULL by default

Avoids strings and `empty()` comparisons