public function pop()
    {
        //get the path array
        $pathArray = $this->getArray();

        //remove the last
        $path = array_pop($pathArray);

        //set path
        $this->data = implode('/', $pathArray);

        return $path;
    }