When logged in as admin (or sometimes for everyone due to an unknown bug), allPlayers also return headless clients. However, it is often undesirable to have them included, for instance if the command is used for a custom player list, and filtering them out of the array is cumbersome and slow.
It'd be great to have an optional parameter to include/exclude headless clients from the output, e.g. "allPlayers true" / "allPlayers false"