private function removeEmptyParams($arr) { foreach ($arr as $key => $value) { if (empty($value)) { unset($arr[$key]); } } return $arr; }