Modified Particle::is() in order to improve performance.