Checks if container is running

def container_running(self, id=None, name=None):
        """
        Checks if container is running
        """
        running = False
        if id:
            running = self.inspect_container(id)['State']['Running']
        elif name:
            running = self.inspect_container(name)['State']['Running']
        return running