use contains? to check for attribute presence