Added .destroyed field to check if component has been destroyed