Replaced MayaScene::hasAttribute for loop with find