changed !exists to exists == false