Rather than this, I'd use get/2 and switch on the atom undefined, for clarity and parity.