Check if id was set