'Checks for the instances\'s state'

def _get_state_boolean(self, element):

    state = findall(element=element, xpath='instancesSet/item/currentState/name', namespace=NAMESPACE)[0].text
    return (state in ('stopping', 'pending', 'starting'))
