catch undefined when checking option values

bug fix: undefined was being returned when options not set via data attributes, resulting in an error