Check if $is_pe exists before using it
$is_pe is not a standard fact, so the current code fails with strict_variables on.