Added "isFile" filter to custom template files array creation