raise an error if the user tries to access a halo with zero particles