Fix exists? method to return boolean.

exists? method didn't return boolean. it returned 1 or nil.