Add is spawned/valid checks to logic loops