Check if variable is undefined according to PR #30