Added in logic to ensure null values are not checked unless required.
Merge branch 'master' of https://github.com/michaeljs1990/val