Added return for when word.length ==0