Death error

How and where should i put that isValid node? Should i destroy the player character before opening the level?