What would be the best to check to see if an asset has an attribute, without raising an error while checking?
Something like:
if ($asset->attr('username') == NULL) { // Do something }
That will correctly execute the "do something" code, but it also raises a php error, because it is checking for an attribute which does not exist.
What is the correct way to do this?