seems we can remove this condition since we've check the `path` variable in line 234 ?