It's because it's a function arg so it might be undefined. But the length should also be checked (I presume that's what you were driving at)