Use staticEval in null prune condition