return reward is not None and (self.truncate is None or (reward>=self.truncate[0] and reward<=self.truncate[1]))