Added method to determine if a particle is contained in the bucket.