Small changes for isAttributeExists method.