don't run .as_number on nil values