What does this function do if 'key' is undefined? It will just return undefined, correct? 

In other words, is there a point to running the rest of the function if 'key' isn't passed in?