Just accept a nil value.
eg:
function test(a)
  local a = a or "nothing here" -- If a is nil, it will be set to "nothing here"
  print(a)
end