As per our conversation, add `isEmpty` method to data collection.