Recommended way is to use Magento's way instead of using ordinary ways to minimize mistakes.
For example:
$livechat_license_number = !isset($_POST['livechat_license_number']) ? $livechat_license_number= '' : $_POST['livechat_license_number'];
For the above, we can use the below magento's method:
$this->getRequest()->getPost('livechat_params', '');
Recommended way is to use Magento's way instead of using ordinary ways to minimize mistakes.
For example:
For the above, we can use the below magento's method: