Consistently use $this->filter->isFile().