Please add an early return if `input` is undefined.