Firestore/src/PathTrait.php
private function isDocument($name)
    {
        if (!$this->isRelative($name)) {
            $name = $this->relativeName($name);
        }

        $parts = $this->splitName($name);
        return count($parts) > 0 && count($parts) % 2 === 0;
    }
private function isDocument($name)
    {
        if (!$this->isRelative($name)) {
            $name = $this->relativeName($name);
        }

        $parts = $this->splitName($name);
        return count($parts) > 0 && count($parts) % 2 === 0;
    }
private function isDocument ( $ name ) { if ( ! $ this -> isRelative ( $ name ) ) { $ name = $ this -> relativeName ( $ name ) ; } $ parts = $ this -> splitName ( $ name ) ; return count ( $ parts ) > 0 && count ( $ parts ) % 2 === 0 ; }
Determine whether the given path is a document.

@param string $name
@return bool
Determine whether the given path is a document .