Find an attribute with the specified type in the array.
The attributes array to search.
The type of attribute to find.
the first attribute found with the specified type, or null
null