GoLang alternatives for PHP functions
array_filter($required_args, function($val){ return !($val === null || (is_array($val) && !$val));});