Is this the right place to check this or is it better to do it inside `pow` ?