Assume that only one layer matches the id and return instead of continuing to iterate over attributes after the layers have been potentially reallocated.
Assume that only one layer matches the id and return instead of continuing to iterate over attributes after the layers have been potentially reallocated.