refv now returns None if the key is not valid.