Is this a good idea? (scripting animations)

Let’s say you have multiple tracks that are playing, I know you could try using animationpriorities or something but. To ensure animations don’t override each other. Would this be a good idea?

for i, track in Animator:GetPlayingAnimationTracks() do
if track.IsPlaying then
-- Play track outside the loop
loadedtrack = animator:LoadAnimation(12313123)

This is just example code by the way, I didn’t actually write this. I just typed it out quickly.

Ehhh, well I guess it would work but why not use animation priorities? (core, idle, movement, action, etc.)

Because let’s say you have something like a flashlight idle animation but then a regular idle animation too, both are gonna be running like all the time almost so you gotta you know. Ensure safety?