private function exist(File $aFile)
    {
        $count = $this->execute(
            'SELECT COUNT(*) FROM file WHERE id = :id', [':id' => $aFile->id()->id()]
        )->fetchColumn();

        return $count === 1;
    }
private function exist(File $aFile)
    {
        $count = $this->execute(
            'SELECT COUNT(*) FROM file WHERE id = :id', [':id' => $aFile->id()->id()]
        )->fetchColumn();

        return $count === 1;
    }
private function exist ( File $ aFile ) { $ count = $ this -> execute ( 'SELECT COUNT(*) FROM file WHERE id = :id' , [ ':id' => $ aFile -> id ( ) -> id ( ) ] ) -> fetchColumn ( ) ; return $ count === 1 ; }
Checks if the file given exists in the database.

@param File $aFile The file

@return bool
Checks if the file given exists in the database .