Might as well switch the if statement with the for loop.  No point in looping if the summand isn't useful.