Added an exists condition