Is the current episode over?

def isFinished(self):
        """ Is the current episode over?
        """
        finished = (self.env._step == len(self.env.profile))
        if finished:
            logger.info("Finished episode.")
        return finished