Check for undefined early to improve perf
Merge pull request #301 from bstansberry/WFCORE-224

Check for undefined early to improve perf