Edited is exist method changed 1 to 0 in if condition