public function isDirectory(): bool {
		if ($this->isRoot()) {
			return true;
		}

		$content = $this->manager->listContents(
			$this->getParent()->getUrl(),
			false
		);

		return count(
				array_filter(
					$content,
					function ($item) {
						if ($item["basename"] == $this->getName()) {
							return $item["type"] == "dir";
						}

						return false;
					}
				)
			) === 1;
	}
public function isDirectory(): bool {
		if ($this->isRoot()) {
			return true;
		}

		$content = $this->manager->listContents(
			$this->getParent()->getUrl(),
			false
		);

		return count(
				array_filter(
					$content,
					function ($item) {
						if ($item["basename"] == $this->getName()) {
							return $item["type"] == "dir";
						}

						return false;
					}
				)
			) === 1;
	}
public function isDirectory ( ) : bool { if ( $ this -> isRoot ( ) ) { return true ; } $ content = $ this -> manager -> listContents ( $ this -> getParent ( ) -> getUrl ( ) , false ) ; return count ( array_filter ( $ content , function ( $ item ) { if ( $ item [ "basename" ] == $ this -> getName ( ) ) { return $ item [ "type" ] == "dir" ; } return false ; } ) ) === 1 ; }
check if this dir exists

@return bool
check if this dir exists