Guard against a nil key