public function removeFromWhitelist(File $file)
    {
        if(!$this->whitelistContainsFile($file)){
            return false;
        }

        if(($key = array_search($this->filePath($file), $this->whiteList)) !== false) {
            unset($this->whiteList[$key]);
        }
        $this->writeWhitelist();
        return !$this->whitelistContainsFile($file);
    }