[FIX] Empty / no template detection