Check isEmpty instead of null in aggregate

Because null is a valid user result