`basename` always returns `string`. There's no need to do `==` instead of `===`.