This code meets the spec, however the name can be improved like `contains_slash`.
(`is_absolute path` sounds like testing that path starts with "/")