Checks for existence of the specified path.

@param string $id
@return string
321872
public function has($id)
    {
        try {
            $existing = $this->get($id);
        } catch (\OutOfBoundsException $e) {
            return false;
        }
        return Util::typeOf($existing);
    }
601409
public function destroy($id)
    {
        if(file_exists($this->path . DS . $id) && is_writable($this->path . DS . $id))
        {
            return unlink($this->path . DS . $id);
        }
        return false;
    }
578847
public function existsId($id) {
        $count = $this->fetchCount(array($this->getDao()->getTableId() => $id));
        return $count > 0 ? true : false;
	}
396558
public function hasDirectory($id)
    {
        $fsConfig = $this->getOption(self::OPTION_ADAPTERS);
        return isset($fsConfig[$id]);
    }
1015622
public function path($id = null)
	{
		if (! isset($this->resource_path)) {
			throw new \InvalidArgumentException(static::class . ' does not implement a resource path definition.');
		}

		return is_null($id) ? $this->url($this->resource_path) : $this->url("$this->resource_path/$id");
	}
1267003
protected function checkExists($id)
    {
        $filter = array(
            'fields' => array(
                array(
                    'field' => 'id',
                    'compare' => '=',
                    'value' => $id,
                ),
            ),
        );
        $exists = $this->rubric->count($filter);
        return $exists?true:false;
    }
753934
public function id_to_url($id){
    if ( $file = $this->id_to_real($id) ){
      return $this->real_to_url($file);
    }
    return false;
  }
946650
public static function find_by_id($id)
	{
		$hzad = self::oneOrNew($id);

		if (!$hzad->get('authenticator'))
		{
			return false;
		}

		return $hzad;
	}
945617
function getAwaitingsByID(string $id) {
        $objs = array();
        
        foreach($this->awaiting as $key => $value) {
            if(\strpos($key, $id) !== false) {
                $objs[$key] = $value;
            }
        }
        
        return $objs;
    }
430739
protected function _file($id)
    {
        $path = $this->_path($id);
        $fileName = $this->_idToFileName($id);
        return $path . $fileName;
    }
1233732
public function getByID($id)
    {
        if(array_key_exists($id, $this->idToSlugCache))
            $slug = $this->idToSlugCache[$id];
        else
            $slug = $this->SystemCache->get($this->getModel()->getTableName().':id:'.$id);

        if (!empty($slug)) {
            return $this->getBySlug($slug);
        }

        $this->loadSource();

        if(!isset($this->slugsByID[$id]))
            return null;

        $slug = $this->slugsByID[$id];

        return $this->getBySlug($slug);
    }
1023207
protected function getDirectory($id=null)
    {
        if($id) {
            return $this->fileDB->getById($id,1);
        }

        try{
            return $this->fileDB->get('/',1);
        } catch(NotInDbException $e) {
            $this->fileDB->syncWithFs('/', 1);
            return $this->fileDB->get('/',1);
        } catch(NotFound $e) {
            $this->fileDB->syncWithFs('/', 1);
            return $this->fileDB->get('/',1);
        }
    }
740114
public function match($id)
    {
        return $id == $this->id || (strlen($this->getAlias()) && @preg_match($this->getAlias(), $id));
    }
404083
public function read($id)
    {
        // Check if id exists
        if (!xcache_isset($this->prefix . $id)) {
            return false;
        }

        return (string) xcache_get($this->prefix . $id);
    }
437970
public function findById($id)
    {
        foreach ($this->items as $page) {
            if ($page->getId() == $id) {
                return $page;
            } else if ($found = $page->getPages()->findById($id)) {
                return $found;
            }
        }
    }
112867
public function getPath($id, $file = null)
    {
        if (is_null($file)) {
            return sprintf('%s/%s/', $this->baseDir, $id);
        } else {
            return sprintf('%s/%s/%s', $this->baseDir, $id, $file);
        }
    }
661449
public function getPath( $id )
	{
		$result = array();
		$node = $this->getNode( $id, MW_Tree_Manager_Abstract::LEVEL_ONE );

		$search = $this->createSearch();

		$expr = array(
			$search->compare( '<=', $this->_searchConfig['left']['code'], $node->left ),
			$search->compare( '>=', $this->_searchConfig['right']['code'], $node->right ),
		);

		$search->setConditions( $search->combine( '&&', $expr ) );
		$search->setSortations( array( $search->sort( '+', $this->_searchConfig['left']['code'] ) ) );

		$results = $this->searchNodes( $search );

		foreach ( $results as $item ) {
			$result[$item->getId()] = $item;
		}

		return $result;
	}