guard empty histogram