protected function getResponse($response, $returnBool, $arrayKey = '')
    {
        $response = $this->jsonDecode($response);

        if ($response === \null) {
            return \false;
        }
        
        if ($returnBool) {
            return $this->getStatus($response);
        }
        
        if ($arrayKey) {
            if (isset($response[$arrayKey])) {
                return $response[$arrayKey];
            }

            return \false;
        }
        
        return $response;
    }