Similarly here. We should check for `nil` and don't do anything if that's the case.