Check self.line instead of self.path

Now the condition makes more sense and we don't need the comments.