Check file exists.

@param string $path        The file path to check.
@param bool   $inSensitive Insensitive file name case.

@return  bool
495457
public static function exists($path, $inSensitive = false)
    {
        $exists = is_file($path);

        if (!$inSensitive) {
            return $exists;
        }

        if (!$exists) {
            $lowerfile = strtolower($path);

            foreach (glob(dirname($path) . '/*') as $file) {
                if (strtolower($file) === $lowerfile) {
                    return true;
                }
            }
        }

        return false;
    }
886433
public function has(string ...$path): bool
    {
        try {
            $this->get(...$path);
        } catch (ConfigKeyNotFoundException $e) {
            return false;
        }

        return true;
    }
551800
public function exists($path)
    {
        $metadata = $this->dropbox->getMetadata($this->pathRoot.$path);
        return is_array($metadata) && isset($metadata['path']);
    }
704215
public static function exist($path)
    {
        $path = Normalize::diskFullPath($path);
        return (file_exists($path) && is_readable($path) && is_file($path));
    }
26396
public function has($path)
    {
        $path = $this->applyPathPrefix($path);
        $object = $this->bucket->object($path);

        return $object->exists();
    }
680782
public function exists($path)
    {
        foreach ($this->route->getList() as $route) {
            if (isset($route['pattern']) && $route['pattern'] === $path) {
                return true;
            }
        }

        return (bool) $this->get(array('alias' => $path));
    }
155122
public function checkPath($path = null)
  {
    if($path === null)
    {
      $path = $this->path;
    }

    if(strlen($path) == 0)
    {
      return TRUE;
    }

    $pattern = "/^" . $this->regex["path"] . "$/";
    $status = @preg_match($pattern, $path);

    if($status === FALSE)
    {
      throw new Exception("URI path validation failed");
    }

    return ($status == 1);
  }
669800
public function exists($path)
    {
        list($name, $path) = $this->splitPath($path);

        return $this->load($name)->exists($path);
    }
1247677
public function has($path) {
        $target = &$this->all;
        foreach (explode('.', $path) as $key) {
            if (array_key_exists($key, $target)) {
                $target = &$target[$key];
            } else return false;
        }
        return true;
    }
1235956
public function exists($path)
	{
        $at       =& $this->data;
        $keys     = explode(".", $path);
        $keyCount = count($keys);

        for ($i=0; $i < $keyCount; $i++) {
            if (($keyCount-1) === $i) {
                return isset($at[$keys[$i]]);
            } else {
                $key = $keys[$i];
                if (!isset($at[$key])) {
                    $at[$key] = [];
                }
                $at =& $at[$key];
            }
        }

        return false;
	}
473719
public static function isSrcPathExists(string $path, string $file = null): bool
    {
        $src = self::$parameters['dir'] . $path . $file;
        return file_exists($src) && is_file($src);
    }
342377
public function isFile($path)
    {
        $parentDir = $this->dirname($path);
        return in_array($path, $this->files($parentDir));
    }
369184
protected function checkPath($path)
    {
        foreach ($this->chroots as $chroot) {
            if (StringHelper::contains($path, $chroot)) {
                return true;
            }
        }
        return false;
    }
1168896
public function has($path)
    {
        try {
            return $this->getOss()->doesObjectExist($this->bucket, $path) != false ? true : false;
        }catch (OssException $e){

        }
        return false;
    }
943776
function fileExists( $path, $checkDFSFile = false )
    {
        $path = self::cleanPath( $path );
        eZDebugSetting::writeDebug( 'kernel-clustering', "dfs::fileExists( '$path' )" );
        return self::$dbbackend->_exists( $path, false, true, $checkDFSFile );
    }
1142068
public function itemExists($path)
    {
        try {
            $this->getMetadata($path);
        } catch (ClientException $e) {
            if ($e->getResponse()->getStatusCode() == '404') {
                return false;
            }

            throw $e;
        }

        return true;
    }
1318455
public function has($path)
    {
        try {
            $this->api->resource($path);
        } catch (Exception $e) {
            return false;
        }

        return true;
    }