check if it's set first