Tweaked search template conditional.