Please use `$filesystem->isAbsolutePath($path)` for this check, because yours isn't cross-platform.