If I call getAttributeText on a non existing attribute, eg:
I get the fatal error:
Fatal error: Call to a member function getSource() on a non-object
Which I can't even try-catch because its fatal.
Different magento stores have different attributes (And also different products got different attributes), so how can I access attributes in a safe way that even if they are undefined I won't get fatal (for example get null or empty string if non-existence)?
or as an alternative, how can I test if attribute exists first?