Validates if a value exists on a specified interval.