check that power is a number