Handle empty inputs.