'Hook for overriding on subclassed commands. Do any preprocessing
required and verify an object has an attribute.'

def check_has_attr(self, obj, attr):

    if (not obj.attributes.has(attr)):
        self.caller.msg(("%s    doesn't    have    an    attribute    %s." % (obj.name, attr)))
        return False
    return True
