if date is undefined and is_optional is true, return true