Attribute check if exists first