Is this line needed? Given you have already tested for nil in line 8?