I already have a Page attribute called "is_featured".
I'm also want to use a File attribute that will be called the same "is_featured"
When calling FileAttributeKey::getByHandle('is_featured') to verify that this FileAttribute doesn't already exists, it returns true (which is incorrect, I didn't create it yet).
I think it's because getByHandle doesn't filter with akCategoryID field when querying the DB.
getByHandle() should validate against the attribute category. Currently, calling both following functions seems to do the exact same thing:
FileAttributeKey::getByHandle();
CollectionAttributeKey::getByHandle();
which means you cannot have a File Attribute Key with the same handle as a Collection Attribute Key ?