It's acceptable here, but you could also use `n.get_int_value()` which will only return an int or None.