v1.0.2 - fix template exist check