diff --git a/inc/zip.php b/inc/zip.php
index <HASH>..<HASH> 100644
--- a/inc/zip.php
+++ b/inc/zip.php
@@ -26,9 +26,16 @@ class rah_backup_zip {
 
 	public function extract($filename, $target) {
 		$zip = new ZipArchive;
-		$zip->open($filename);
-		$zip->extractTo($target);
-		$zip->close();
+		
+		if(!$zip || !$zip->open($filename)) {
+			return false;
+		}
+		
+		if(!$zip->extractTo($target)) {
+			return false;
+		}
+		
+		return $zip->close();
 	}
 
 	/**
rah_backup_zip::extract() returns FALSE on failure.

Todo: still needs some file handling and checks.