Remove use of undefined in code, it's bad practice