The way the comment is worded, it seems like EXISTENCE_MASK should be set if it _already_ existed, whereas you seem to be doing the opposite here.