private function isInRoot(string $path): bool
    {
        return substr($path, 0, strlen(self::$root->getName())) === self::$root->getName();
    }
private function isInRoot(string $path): bool
    {
        return substr($path, 0, strlen(self::$root->getName())) === self::$root->getName();
    }
private function isInRoot ( string $ path ) : bool { return substr ( $ path , 0 , strlen ( self :: $ root -> getName ( ) ) ) === self :: $ root -> getName ( ) ; }
helper method to detect whether given path is in root path

@param   string  $path
@return  bool
helper method to detect whether given path is in root path