fixes issue #7965

use is_positive/is_negative