protected function getUrlHTTPCodesFromConfig($urlConfig, array $defaultHTTPCodes) { $HTTPCodes = is_array($urlConfig) && isset($urlConfig[1]) && !empty($urlConfig[1]) ? $urlConfig[1] : $defaultHTTPCodes; return is_array($HTTPCodes) ? $HTTPCodes : [$HTTPCodes]; }