function pathToArr(path) {
  return path ? path.split(/\//).filter((p) => !!p) : []
}
Create a path array from path string
@param {string} path - Path seperated with slashes
@returns {Array} Path as Array
@private