           dispatch_async(dispatch_get_main_queue(), {
             onCompletion(array: galleryItems)
           })
-        } else {
-          dispatch_async(dispatch_get_main_queue(), {
-            onError(error: NSError(), description: "Data is nil")
-          })
-          return
         }
-      } else {
-        dispatch_async(dispatch_get_main_queue(), {
-          onError(error: NSError(), description: "jsonResult is nil")
-          })
-        return
-      }
+      })
     })
     task.resume()
   }

    task.resume()
  }
  
  func getGalleryImagesWithSection(section:ImgurSection, sort:ImgurSort, window:ImgurWindow, page:Int, showViral:Bool, onCompletion:DMArrayBlock, onError:DMErrorStringBlock) {
    let urlSetup = "\(self.restConfig.galleryURI)/\(section.toRaw())/\(sort.toRaw())/\(window.toRaw())/\(page)?showViral=\(showViral)"
    let url = NSURL(string: self.createQueryEndpointFor(urlSetup))

        onError(error: error, description: error.localizedDescription)
        return
      }
      self.imgurResponseParser(data: data, completionHandler: { (data, error, errorDescription) -> () in
        if errorDescription != nil {
          dispatch_async(dispatch_get_main_queue(), {
            onError(error: error!, description: errorDescription!)
          })
        } else {
          let data = data as [AnyObject]
          var galleryItems:[GalleryItem] = []
          for galleryDict in data {
            if (galleryDict["is_album"] as AnyObject! as Int! == 1) {
