Check if post exists before delete.