Only usort if ! empty

See: https://github.com/GigaOM/legacy-pro/issues/4308