Add exists method to Bucket class.