<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def is_stopped(self, is_stopping=True):
        ''' check whether a transfer is stopped or is being stopped '''
        if is_stopping:
            return self._is_stopped or self._is_stopping
        return self._is_stopped