public function validateBizContent() { $data = $this->getBizContent(); if (is_string($data)) { $data = json_decode($data, true); } foreach (func_get_args() as $key) { if (!array_has($data, $key)) { throw new InvalidRequestException("The biz_content {$key} parameter is required"); } } }