Don't mix datatypes in the uids array and use empty instead of checking only null.

Signed-off-by: Max Fierke <max@maxfierke.com>