             if error != nil {
                 
                 completionBlock(error: error, resource: nil)
+                
+                return
             }
             
             let httpResponse = response as NSHTTPURLResponse

            if error != nil {
                
                completionBlock(error: error)
            }
            
            let httpResponse = response as NSHTTPURLResponse

            if error != nil {
                
                completionBlock(error: error, results: nil)
                
                return
            }
            
            let httpResponse = response as NSHTTPURLResponse
