Checks whether the
validityPeriod
of this instance is set.
false if the validityPeriod is null. Otherwise, it returns true.