'Install a default InstanceState if none is present.
A private convenience method used by the __init__ decorator.'

def _new_state_if_none(self, instance):

    if self.has_state(instance):
        return False
    else:
        return self.setup_instance(instance)
