Change syntax of empty check in Collection->random()
Add test to collection->random() when collection is empty