catch undefined when checking option values

bug fix: undefined was being returned when options not set via data attributes, resulting in an error
Merge pull request #17 from wdm954/master

catch undefined when checking option values