public function exists($path, $public = true)
    {
        $path = $this->_relativepath($path, $public);

        return $this->_exists($path);
    }
public function exists($path, $public = true)
    {
        $path = $this->_relativepath($path, $public);

        return $this->_exists($path);
    }
public function exists ( $ path , $ public = true ) { $ path = $ this -> _relativepath ( $ path , $ public ) ; return $ this -> _exists ( $ path ) ; }
Return whether a path exists or not.

@param string $path   The path
@param bool   $public Determines if the path is in the public/protected folder

@return string
Return whether a path exists or not .