'Determine if the attribute is set.
Args:
attribute: The attribute to check.
Returns:
True if set, otherwise False.
Checking Get against None doesn\'t work as Get will return a default
attribute value. This determines if the attribute has been manually set.'

def IsAttributeSet(self, attribute):

    return ((attribute in self.synced_attributes) or (attribute in self.new_attributes))
