Updated hashToken() function so it can receive an array as its first parameter
Fixed baseUrl() giving an error when passing an empty path