Changed to the more efficient exists