func isFile(filePath string) bool {
	f, e := os.Stat(filePath)
	if e != nil {
		return false
	}
	return !f.IsDir()
}
isFile returns true if given path is a file,
or returns false when it's a directory or does not exist.
package i18n
import (
	"fmt"
	"net/http"
	"os"
	"path"
	"strings"
	"github.com/unknwon/i18n"
	"golang.org/x/text/language"
	"gopkg.in/macaron.v1"
	"gopkg.in/macaron.v1/cookie"
)