/**
* @param array $files
- * @param null $destination
+ * @param string $destination
* @param bool $overwrite
*
* @return bool
if (file_exists($destination) && !$overwrite) {
return FALSE;
}
- $valid_files = [];
+
if (is_array($files)) {
foreach ($files as $file) {
// make sure the file exists