defining noreplacetemplate as empty array if no isset