Core/Toolbox/IO/Upload.php
public function moveFile(): bool
    {
        if ($this->check_exists == true && file_exists($this->destination)) {
            Throw new FileException(sprintf('Destinationfile "%s" already exits.', $this->destination));
        }

        return move_uploaded_file($this->filename, $this->destination);
    }
public function moveFile(): bool
    {
        if ($this->check_exists == true && file_exists($this->destination)) {
            Throw new FileException(sprintf('Destinationfile "%s" already exits.', $this->destination));
        }

        return move_uploaded_file($this->filename, $this->destination);
    }
Same as php's core move_uploaded_file extended with optional destination file exists check.

@throws FileException when exists check is requested and destination already exists

@return boolean