    def is_finished(self):
        """
        :return: Whether this path has got to the end.
        """
        return self._index >= len(self._steps)
:return: Whether this path has got to the end.
asciimatics/paths.py