classify: cheaper way to check if all elements are zero