All: Update Local variables check for undefined

According to http://contribute.jquery.org/style-guide/js/#type-checks