Tweaked search template conditional