User querying

Dear community,

I faced with one strange behavior.
When I try to do search - identityService.createUserQuery().userIdIn(userIds.toArray(new String[0])).list()
and if userIds is emty - Camunda returns list for all of the users. Is this behavior correct? The same behavior I have when I try to querying the groups.

The version of Camunda 7.9