I want to check if attribute exist in current product by attribute code.
For Ex: attribute code if color and this attribute is assign to current product. but if i pass something else like abcde and this attribute doesn't exist in current product.
So how can i filter is current value is not attribute?
$product->hasData('custom_attribute')